RonnyPfannschmidt / anyvc

generic vcs abstraction (used in pida)

Clone this repository (size: 300.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/RonnyPfannschmidt/anyvc/

Changed (Δ45 bytes):

raw changeset »

anyvc/repository/git.py (2 lines added, 1 lines removed)

Up to file-list anyvc/repository/git.py:

@@ -14,7 +14,8 @@ class GitRepository(Repository):
14
14
    def __init__(self, path, create=False):
15
15
        if create:
16
16
            #XXX: fragile
17
            os.mkdir(path)
17
            if not os.path.exists(path):
18
                os.mkdir(path)
18
19
            subprocess.check_call(['git', 'init'], cwd=path, stdout=None, stdin=None)
19
20
20
21
    def __len__(self):