equal
deleted
inserted
replaced
1461 self._ui.warn(_('unrelated git branch checked out ' |
1461 self._ui.warn(_('unrelated git branch checked out ' |
1462 'in subrepo %s\n') % self._relpath) |
1462 'in subrepo %s\n') % self._relpath) |
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') % |
1471 (self._relpath, self._state[1])) |
1471 (self._relpath, self._state[1])) |
1472 return False |
1472 return False |