diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-05-21 04:02:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-21 04:02:22 -0700 |
commit | 42779124a2f158583f89d23dec78266ea3471103 (patch) | |
tree | ec746071f8558ca209ffe8b21f93446eccabdd05 /contrib | |
parent | Merge branch 'jn/fsck-ident' (diff) | |
parent | remote add: add a --[no-]tags option (diff) | |
download | tgif-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-x | contrib/examples/git-fetch.sh | 4 |
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 |