completion: use __gitcomp_nl() for completing refs
[gitweb.git] / contrib / completion / git-completion.bash
index 8cfee95f88006269e4227f98701b9af8587af0bd..05a3aa426f547b8695e7d7ceeba2dd722c557120 100644 (file)
@@ -980,7 +980,7 @@ _git_branch ()
 
        case "$cur" in
        --set-upstream-to=*)
-               __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}"
+               __gitcomp_nl "$(__git_refs)" "" "${cur##--set-upstream-to=}"
                ;;
        --*)
                __gitcomp "
@@ -1048,7 +1048,7 @@ _git_checkout ()
 
 _git_cherry ()
 {
-       __gitcomp "$(__git_refs)"
+       __gitcomp_nl "$(__git_refs)"
 }
 
 _git_cherry_pick ()