diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2013-09-03 17:45:14 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-03 11:57:53 -0700 |
commit | 597b831afb25303218ac60115ac86dd8879e3ce3 (patch) | |
tree | b10ad6d0a1c2c9a3dda65a7c75b0c10a6cc239e5 /git-remote-testgit.sh | |
parent | 8987cda9e1e1c36e5d0a9be6d371697e50773856 (diff) | |
download | git-597b831afb25303218ac60115ac86dd8879e3ce3.tar.gz |
transport-helper: add no-private-update capability
Since 664059fb (transport-helper: update remote helper namespace,
2013-04-17), a 'push' operation on a remote helper updates the
private ref by default. This is often a good thing, but it can also
be desirable to disable this update to force the next 'pull' to
re-import the pushed revisions.
Allow remote-helpers to disable the automatic update by introducing a new
capability.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-remote-testgit.sh')
-rwxr-xr-x | git-remote-testgit.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-remote-testgit.sh b/git-remote-testgit.sh index 2109070d00..6d2f282d32 100755 --- a/git-remote-testgit.sh +++ b/git-remote-testgit.sh @@ -38,6 +38,7 @@ do echo "*export-marks $gitmarks" fi test -n "$GIT_REMOTE_TESTGIT_SIGNED_TAGS" && echo "signed-tags" + test -n "$GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE" && echo "no-private-update" echo ;; list) |