Skip to content

Commit

Permalink
Catch p4 errors in rollback early enough (before deleting refs!)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
  • Loading branch information
Simon Hausmann committed May 23, 2007
1 parent ac3e0d7 commit 66a2f52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ class P4RollBack(Command):
return False
maxChange = int(args[0])

if "p4ExitCode" in p4Cmd("p4 changes -m 1"):
die("Problems executing p4");

if self.rollbackLocalBranches:
refPrefix = "refs/heads/"
lines = mypopen("git rev-parse --symbolic --branches").readlines()
Expand Down

0 comments on commit 66a2f52

Please sign in to comment.