From 5dee29ac0fc95999a42c5cbac767724a9ff73cfa Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Thu, 25 Jan 2007 05:45:39 +0100 Subject: make --upload-pack option to git-fetch configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This introduces the config item remote..uploadpack to override the default value (which is "git-upload-pack"). Signed-off-by: Uwe Kleine-König Signed-off-by: Junio C Hamano --- git-parse-remote.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'git-parse-remote.sh') diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 4fc602082..1122c8389 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -279,3 +279,16 @@ resolve_alternates () { esac done } + +get_uploadpack () { + data_source=$(get_data_source "$1") + case "$data_source" in + config) + uplp=$(git-repo-config --get "remote.$1.uploadpack") + echo ${uplp:-git-upload-pack} + ;; + *) + echo "git-upload-pack" + ;; + esac +} -- cgit v1.2.3