rebase: invoke post-rewrite hook
[gitweb.git] / git-rebase--interactive.sh
index e551906ecd2a72fa56fa6ef5dba8f12708acb337..4a69c38349aa3e7e912d03e6842686cfc95bfb9f 100755 (executable)
@@ -235,7 +235,7 @@ pick_one () {
        parent_sha1=$(git rev-parse --verify $sha1^) ||
                die "Could not get the parent of $sha1"
        current_sha1=$(git rev-parse --verify HEAD)
-       if test -z "$no_ff" -a "$current_sha1" = "$parent_sha1"
+       if test -z "$no_ff" && test "$current_sha1" = "$parent_sha1"
        then
                output git reset --hard $sha1
                output warn Fast-forward to $(git rev-parse --short $sha1)
@@ -445,7 +445,7 @@ do_next () {
                mark_action_done
                pick_one $sha1 ||
                        die_with_patch $sha1 "Could not apply $sha1... $rest"
-               git commit --amend
+               git commit --amend --no-post-rewrite
                ;;
        edit|e)
                comment_for_reflog edit