]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-rebase.sh
graph API: don't print branch lines for uninteresting merge parents
[git.git] / git-rebase.sh
index 9b13b833cb5762542848ee3e85e23d3ca0f76fa6..68855c18ae62ef6f4a3fdacb6f8de9c57511aa79 100755 (executable)
@@ -214,7 +214,7 @@ do
                else
                        die "No rebase in progress?"
                fi
-               git reset --hard $(cat $dotest/orig-head)
+               git reset --hard $(cat "$dotest/orig-head")
                rm -r "$dotest"
                exit
                ;;
@@ -353,7 +353,7 @@ orig_head=$branch
 mb=$(git merge-base "$onto" "$branch")
 if test "$upstream" = "$onto" && test "$mb" = "$onto" &&
        # linear history?
-       ! git rev-list --parents "$onto".."$branch" | grep " .* " > /dev/null
+       ! (git rev-list --parents "$onto".."$branch" | grep " .* ") > /dev/null
 then
        # Lazily switch to the target branch if needed...
        test -z "$switch_to" || git checkout "$switch_to"