##// END OF EJS Templates
subrepo: check return code for git push (issue4223)
Matt Mackall -
r20970:70312c95 default
parent child Browse files
Show More
@@ -1463,8 +1463,8 b' class gitsubrepo(abstractsubrepo):'
1463 return False
1463 return False
1464 self._ui.status(_('pushing branch %s of subrepo %s\n') %
1464 self._ui.status(_('pushing branch %s of subrepo %s\n') %
1465 (current.split('/', 2)[2], self._relpath))
1465 (current.split('/', 2)[2], self._relpath))
1466 self._gitcommand(cmd + ['origin', current])
1466 ret = self._gitdir(cmd + ['origin', current])
1467 return True
1467 return ret[1] == 0
1468 else:
1468 else:
1469 self._ui.warn(_('no branch checked out in subrepo %s\n'
1469 self._ui.warn(_('no branch checked out in subrepo %s\n'
1470 'cannot push revision %s\n') %
1470 'cannot push revision %s\n') %
General Comments 0
You need to be logged in to leave comments. Login now