Skip to content

Commit 7025616

Browse files
committed
Merge branch 'ds/completion-silence-in-tree-path-probe' into maint
* ds/completion-silence-in-tree-path-probe: git-completion.bash: silence "not a valid object" errors
2 parents 095d65d + ca87dd6 commit 7025616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ __git_complete_revlist_file ()
397397
*) pfx="$ref:$pfx" ;;
398398
esac
399399

400-
__gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
400+
__gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" 2>/dev/null \
401401
| sed '/^100... blob /{
402402
s,^.* ,,
403403
s,$, ,

0 commit comments

Comments
 (0)