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

Signed-off-by: Simon Hausmann <hausmann@kde.org>
maint
Simon Hausmann 2007-03-20 18:32:47 +01:00
parent 83dce55af3
commit 05140f342e
1 changed files with 2 additions and 2 deletions

View File

@ -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