Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: better message for "git-p4 sync" when not cloned
[gitweb.git]
/
contrib
/
fast-import
/
git-p4
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 6b847c4cb8edb51808b38fd80754535b0ad728b3..04e6c3dcba8c68c443fc61c1d009afac6eff76fa 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-1676,6
+1676,8
@@
class P4Sync(Command):
changes.sort()
else:
+ if not self.p4BranchesInGit:
+ die("No remote p4 branches. Perhaps you never did \"git p4 clone\" in here.");
if self.verbose:
print "Getting p4 changes for %s...%s" % (', '.join(self.depotPaths),
self.changeRange)