diff options
author | Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> | 2007-01-25 05:45:39 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-24 23:06:30 -0800 |
commit | 5dee29ac0fc95999a42c5cbac767724a9ff73cfa (patch) | |
tree | 657b55a44ddf363f6a9540b0b4e5eb900ab99bc1 /git-fetch.sh | |
parent | e28714c527339a477fca226765163b9361d94285 (diff) | |
download | git-5dee29ac0fc95999a42c5cbac767724a9ff73cfa.tar.gz git-5dee29ac0fc95999a42c5cbac767724a9ff73cfa.tar.xz |
make --upload-pack option to git-fetch configurable
This introduces the config item remote.<name>.uploadpack to override the
default value (which is "git-upload-pack").
Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-x | git-fetch.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh index 07a1d05ac..61c8cf477 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -85,6 +85,12 @@ case "$#" in set x $origin ; shift ;; esac +if test -z "$exec" +then + # No command line override and we have configuration for the remote. + exec="--upload-pack=$(get_uploadpack $1)" +fi + remote_nick="$1" remote=$(get_remote_url "$@") refs= |