Merge branch 'mm/doc-hooks-linkgit-fix' into maint
[gitweb.git] / contrib / completion / git-completion.bash
index 63f5c046a2c7058692657ffa4e97f20367bafedc..00d729996fab5be89696bf4841205d45c49c7794 100644 (file)
@@ -2413,8 +2413,8 @@ _git_stash ()
                show,--*|branch,--*)
                        ;;
                branch,*)
-                 if [ $cword -eq 3 ]; then
-                       __gitcomp_nl "$(__git_refs)";
+                       if [ $cword -eq 3 ]; then
+                               __gitcomp_nl "$(__git_refs)";
                        else
                                __gitcomp_nl "$(git --git-dir="$(__gitdir)" stash list \
                                                | sed -n -e 's/:.*//p')"