diff options
| author | Junio C Hamano <gitster@pobox.com> | 2015-03-05 13:12:57 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-03-05 13:12:57 -0800 |
| commit | 6db0497e1a8913fdcb935fa50cc8971d64b347be (patch) | |
| tree | bfc102f035b924fa5a18fe8425911affdba9867a /git-remote-testgit.sh | |
| parent | aaa90f5f077a2b5da2bb750566bf69b330441e0c (diff) | |
| parent | 33cae5428ab504e318cfac880d59e0bda58590d7 (diff) | |
| download | git-6db0497e1a8913fdcb935fa50cc8971d64b347be.tar.xz | |
Merge branch 'mh/deref-symref-over-helper-transport' into maint
"git fetch" over a remote-helper that cannot respond to "list"
command could not fetch from a symbolic reference e.g. HEAD.
* mh/deref-symref-over-helper-transport:
transport-helper: do not request symbolic refs to remote helpers
Diffstat (limited to 'git-remote-testgit.sh')
| -rwxr-xr-x | git-remote-testgit.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/git-remote-testgit.sh b/git-remote-testgit.sh index a9c75a2360..752c763eb6 100755 --- a/git-remote-testgit.sh +++ b/git-remote-testgit.sh @@ -1,7 +1,13 @@ #!/bin/sh # Copyright (c) 2012 Felipe Contreras -alias=$1 +# The first argument can be a url when the fetch/push command was a url +# instead of a configured remote. In this case, use a generic alias. +if test "$1" = "testgit::$2"; then + alias=_ +else + alias=$1 +fi url=$2 dir="$GIT_DIR/testgit/$alias" |
