@matheusbsbs / matheus-bagliano / commits / 05140f342e
Fork 0

sync-to-perforce is now called submit and fixed the gitdir check a little bit

Signed-off-by: Simon Hausmann <hausmann@kde.org>

Simon Hausmann committed Mar 20, 2007 at 18:32 UTC 05140f342e1df7319dd3da2ef8157bfd5760fee6
1 file changed +2 -2
contrib/fast-import/git-p4.py
+2 -2
@@ -316,7 +316,7 @@ def printUsage(commands):
316 commands = {
317 "debug" : P4Debug(),
318 "clean-tags" : P4CleanTags(),
319 - "sync-to-perforce" : P4Sync()
319 + "submit" : P4Sync()
320 }
321
322 if len(sys.argv[1:]) == 0:
@@ -350,7 +350,7 @@ if not isValidGitDir(gitdir):
350 if isValidGitDir(gitdir + "/.git"):
351 gitdir += "/.git"
352 else:
353 - dir("fatal: cannot locate git repository at %s" % gitdir)
353 + die("fatal: cannot locate git repository at %s" % gitdir)
354
355 os.environ["GIT_DIR"] = gitdir
356