Code

sync-to-perforce is now called submit and fixed the gitdir check a little bit
authorSimon Hausmann <hausmann@kde.org>
Tue, 20 Mar 2007 17:32:47 +0000 (18:32 +0100)
committerSimon Hausmann <hausmann@kde.org>
Tue, 20 Mar 2007 17:32:47 +0000 (18:32 +0100)
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/git-p4.py

index fa1b19fbbc82f28aac7daf4ccdd5762bedc60f9d..aca1bcaab20dd20d21eded7f326f5b42d2fb99bf 100755 (executable)
@@ -316,7 +316,7 @@ def printUsage(commands):
 commands = {
     "debug" : P4Debug(),
     "clean-tags" : P4CleanTags(),
-    "sync-to-perforce" : P4Sync()
+    "submit" : P4Sync()
 }
 
 if len(sys.argv[1:]) == 0:
@@ -350,7 +350,7 @@ if not isValidGitDir(gitdir):
     if isValidGitDir(gitdir + "/.git"):
         gitdir += "/.git"
     else:
-        dir("fatal: cannot locate git repository at %s" % gitdir)
+        die("fatal: cannot locate git repository at %s" % gitdir)
 
 os.environ["GIT_DIR"] = gitdir