summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
commit42779124a2f158583f89d23dec78266ea3471103 (patch)
treeec746071f8558ca209ffe8b21f93446eccabdd05 /contrib
parentMerge branch 'jn/fsck-ident' (diff)
parentremote add: add a --[no-]tags option (diff)
downloadtgif-42779124a2f158583f89d23dec78266ea3471103.tar.xz
Merge branch 'st/remote-tags-no-tags'
* st/remote-tags-no-tags: remote add: add a --[no-]tags option Honor "tagopt = --tags" configuration option
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/examples/git-fetch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/examples/git-fetch.sh b/contrib/examples/git-fetch.sh
index e44af2c86d..a314273bd5 100755
--- a/contrib/examples/git-fetch.sh
+++ b/contrib/examples/git-fetch.sh
@@ -127,10 +127,12 @@ then
orig_head=$(git rev-parse --verify HEAD 2>/dev/null)
fi
-# Allow --notags from remote.$1.tagopt
+# Allow --tags/--notags from remote.$1.tagopt
case "$tags$no_tags" in
'')
case "$(git config --get "remote.$1.tagopt")" in
+ --tags)
+ tags=t ;;
--no-tags)
no_tags=t ;;
esac