summaryrefslogtreecommitdiff
path: root/contrib/examples
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2010-04-19 23:31:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-04-19 23:34:49 (GMT)
commit944163a4bd4cc4c35392147d10020ba57c6d7d87 (patch)
treeaa3627e5ff2a069cc89588c8d7f07d159ff04404 /contrib/examples
parent5469e2dab133a197dc2ca2fa47eb9e846ac19b66 (diff)
downloadgit-944163a4bd4cc4c35392147d10020ba57c6d7d87.zip
git-944163a4bd4cc4c35392147d10020ba57c6d7d87.tar.gz
git-944163a4bd4cc4c35392147d10020ba57c6d7d87.tar.bz2
Honor "tagopt = --tags" configuration option
If the "tagopt = --tags" option of a remote is set, all tags will be fetched as in "git fetch --tags". Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples')
-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 e44af2c..a314273 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