From: Simon Hausmann Date: Tue, 20 Mar 2007 17:32:47 +0000 (+0100) Subject: sync-to-perforce is now called submit and fixed the gitdir check a little bit X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=a1014dbc62b7c1c2037efbf659d89025793d210b;p=python%2Ffast-export.git sync-to-perforce is now called submit and fixed the gitdir check a little bit --- diff --git a/git-p4.py b/git-p4.py index fa1b19f..aca1bca 100755 --- a/git-p4.py +++ b/git-p4.py @@ -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