diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-05-21 15:02:22 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-21 15:02:22 +0400 |
commit | 42779124a2f158583f89d23dec78266ea3471103 (patch) | |
tree | ec746071f8558ca209ffe8b21f93446eccabdd05 /contrib | |
parent | 4cbf42e1519015a30401992815331c048ff3c982 (diff) | |
parent | 111fb858654b95355da05772b4dcdf91decc4721 (diff) |
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 |