1
0
mirror of https://github.com/git/git synced 2024-07-04 16:48:40 +00: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()