diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index be800e09bd..48c3abdf98 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -321,7 +321,7 @@ __git_refs () if [[ "$ref" == "$cur"* ]]; then echo "$ref" fi - done | uniq -u + done | sort | uniq -u fi return fi