Teach bash about git-am/git-apply and their whitespace options.
[gitweb.git] / git-clone.sh
index 9ed413554455a7869c6c2223319eb58b4f3e6463..d4ee93f75bba729c82560f0b2426d8f09f63d82e 100755 (executable)
@@ -48,6 +48,10 @@ Perhaps git-update-server-info needs to be run there?"
                case "$name" in
                *^*)    continue;;
                esac
+               case "$bare,$name" in
+               yes,* | ,heads/* | ,tags/*) ;;
+               *)      continue ;;
+               esac
                if test -n "$use_separate_remote" &&
                   branch_name=`expr "z$name" : 'zheads/\(.*\)'`
                then