Skip to content

Commit

Permalink
Allow to push to remote servers
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Dec 23, 2014
1 parent 75cf96e commit 244313a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions git-remote-hg
Expand Up @@ -429,13 +429,10 @@ def main(args):
refspecs.extend(args)
pushes = {s.lstrip('+'): (d, s.startswith('+'))
for s, d in (r.split(':', 1) for r in refspecs)}
if isinstance(repo, bundlerepo) or not repo.local():
if isinstance(repo, bundlerepo):
error = 'Cannot push to a bundle file'
else:
error = 'Push to remote server is not enabled yet'
if isinstance(repo, bundlerepo):
for source, (dest, force) in pushes.iteritems():
helper.write('error %s %s\n' % (dest, error))
helper.write('error %s Cannot push to a bundle file\n'
% (dest, error))
helper.write('\n')
helper.flush()
else:
Expand Down

0 comments on commit 244313a

Please sign in to comment.