Merge branch 'jc/solaris-0811'
[gitweb.git] / contrib / completion / git-completion.bash
index c84d765ff9e5adb9636755591719ff9cd561e19c..98b9cbedc2bcae32491fc69641740b186a64ab26 100755 (executable)
@@ -150,12 +150,10 @@ __git_ps1 ()
                        fi
                fi
 
-               if [ -n "$b" ]; then
-                       if [ -n "${1-}" ]; then
-                               printf "$1" "$c${b##refs/heads/}$w$i$r"
-                       else
-                               printf " (%s)" "$c${b##refs/heads/}$w$i$r"
-                       fi
+               if [ -n "${1-}" ]; then
+                       printf "$1" "$c${b##refs/heads/}$w$i$r"
+               else
+                       printf " (%s)" "$c${b##refs/heads/}$w$i$r"
                fi
        fi
 }