summaryrefslogtreecommitdiff
path: root/git-remote-testpy.py
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-14 16:15:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-14 16:15:46 (GMT)
commit6f3f710127b0d5b651915b705a18a25e389fd40d (patch)
treeb800a446e261e4379d14456b7a6dd7439c27d4c3 /git-remote-testpy.py
parente43171a4a728f627aed7a7b4682e6da2cb378253 (diff)
parent6c323322682abed3bb2a3904596b529ebccddb1c (diff)
downloadgit-6f3f710127b0d5b651915b705a18a25e389fd40d.zip
git-6f3f710127b0d5b651915b705a18a25e389fd40d.tar.gz
git-6f3f710127b0d5b651915b705a18a25e389fd40d.tar.bz2
Merge branch 'fc/remote-testgit-feature-done'
In the longer term, tightening rules is a good thing to do, and because nobody who has worked in the remote helper area seems to be interested in reviewing this, I would assume they do not think such a retroactive tightening will affect their remote helpers. So let's advance this topic to see what happens. * fc/remote-testgit-feature-done: remote-testgit: properly check for errors
Diffstat (limited to 'git-remote-testpy.py')
-rw-r--r--git-remote-testpy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-remote-testpy.py b/git-remote-testpy.py
index e4533b1..d94a66a 100644
--- a/git-remote-testpy.py
+++ b/git-remote-testpy.py
@@ -164,6 +164,11 @@ def do_import(repo, args):
ref = line[7:].strip()
refs.append(ref)
+ print "feature done"
+
+ if os.environ.get("GIT_REMOTE_TESTGIT_FAILURE"):
+ die('Told to fail')
+
repo = update_local_repo(repo)
repo.exporter.export_repo(repo.gitdir, refs)
@@ -177,6 +182,9 @@ def do_export(repo, args):
if not repo.gitdir:
die("Need gitdir to export")
+ if os.environ.get("GIT_REMOTE_TESTGIT_FAILURE"):
+ die('Told to fail')
+
update_local_repo(repo)
changed = repo.importer.do_import(repo.gitdir)