get_sha1_oneline: make callers prepare the commit list to traverse
[gitweb.git] / git-parse-remote.sh
index 5f47b18141a0758c3d0dae2cfe764495c92139c5..4da72aefbd226f6f42af381b5d5a5a3178414576 100644 (file)
@@ -66,7 +66,7 @@ get_remote_merge_branch () {
            origin="$1"
            default=$(get_default_remote)
            test -z "$origin" && origin=$default
-           curr_branch=$(git symbolic-ref -q HEAD)
+           curr_branch=$(git symbolic-ref -q HEAD) &&
            [ "$origin" = "$default" ] &&
            echo $(git for-each-ref --format='%(upstream)' $curr_branch)
            ;;