Merge branch 'dl/am-hg-locale' into maint
[gitweb.git] / contrib / completion / git-completion.bash
index 2f994200557b3e2e440d5be55f8526a197ae6269..468c96c4a214b4572327a682ddbd7cb9d96aa008 100644 (file)
@@ -397,7 +397,7 @@ __git_complete_revlist_file ()
                *)   pfx="$ref:$pfx" ;;
                esac
 
-               __gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
+               __gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" 2>/dev/null \
                                | sed '/^100... blob /{
                                           s,^.*        ,,
                                           s,$, ,