summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:22 -0700
commit42779124a2f158583f89d23dec78266ea3471103 (patch)
treeec746071f8558ca209ffe8b21f93446eccabdd05 /contrib
parent4cbf42e1519015a30401992815331c048ff3c982 (diff)
parent111fb858654b95355da05772b4dcdf91decc4721 (diff)
downloadgit-42779124a2f158583f89d23dec78266ea3471103.tar.gz
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