transport-helper: update ref status after push with export

Also add check_output from python 2.7.

Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Sverre Rabbelier
2011-07-16 15:03:37 +02:00
committed by Junio C Hamano
parent 1f25c50419
commit 6c8151a32e
4 changed files with 67 additions and 2 deletions

View File

@ -147,11 +147,15 @@ def do_export(repo, args):
sys.stdout.flush()
update_local_repo(repo)
repo.importer.do_import(repo.gitdir)
changed = repo.importer.do_import(repo.gitdir)
if not repo.local:
repo.non_local.push(repo.gitdir)
for ref in changed:
print "ok %s" % ref
print
COMMANDS = {
'capabilities': do_capabilities,