git-remote-testgit: fix error handling
[gitweb.git] / git-remote-testgit.py
index b0c1e9b273a2763300eba3431eb001aa9cd75263..cdbc49495f3ab51ffd411dd054963d79d161904a 100644 (file)
@@ -146,7 +146,9 @@ def do_export(repo, args):
 
     update_local_repo(repo)
     repo.importer.do_import(repo.gitdir)
-    repo.non_local.push(repo.gitdir)
+
+    if not repo.local:
+        repo.non_local.push(repo.gitdir)
 
 
 COMMANDS = {