summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6581de0)
raw | patch | inline | side by side (parent: 6581de0)
author | Kevin Green <Kevin.Green@morganstanley.com> | |
Mon, 11 Jun 2007 20:48:07 +0000 (16:48 -0400) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 11 Jun 2007 21:15:38 +0000 (23:15 +0200) |
When using git-p4 in this manner:
git-p4 clone //depot/path/project myproject
If "myproject" already exists as a dir, but not a valid git repo, it fails
to create the directory.
Signed-off-by: Kevin Green <Kevin.Green@morganstanley.com>
git-p4 clone //depot/path/project myproject
If "myproject" already exists as a dir, but not a valid git repo, it fails
to create the directory.
Signed-off-by: Kevin Green <Kevin.Green@morganstanley.com>
contrib/fast-import/git-p4 | patch | blob | history |
index e380c149b48bb72ccbc28da9f97be7127e29874a..cababc7fc898bd34ae8ceb7102adda4dfa7ceacd 100755 (executable)
self.cloneDestination = self.defaultDestination(args)
print "Importing from %s into %s" % (', '.join(depotPaths), self.cloneDestination)
- os.makedirs(self.cloneDestination)
+ if not os.path.exists(self.cloneDestination):
+ os.makedirs(self.cloneDestination)
os.chdir(self.cloneDestination)
system("git init")
self.gitdir = os.getcwd() + "/.git"