1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 17:26:09 +02:00

Catch p4 errors in rollback early enough (before deleting refs!)

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
Simon Hausmann 2007-05-23 23:40:48 +02:00
parent ac3e0d79ee
commit 66a2f52395

View File

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