X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fexamples%2Fgit-fetch.sh;h=a314273bd51a865d9d5fc5cd899a51ffa70388a5;hb=2ce0edcd786b790fed580e7df56291619834d276;hp=e44af2c86d8e7e44bc79aafcc8ccef3806804720;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/contrib/examples/git-fetch.sh b/contrib/examples/git-fetch.sh index e44af2c86..a314273bd 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