diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-02-26 16:42:35 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-26 16:42:35 -0800 |
commit | 4d06691eeca5712319a7e8cf2085d081dca9ea47 (patch) | |
tree | 961407cb13c26eeeea6aff0af9146e33eea3d75c /git-rebase--merge.sh | |
parent | git-p4: remove bash-ism in t9800 (diff) | |
parent | Git 1.7.8.5 (diff) | |
download | tgif-4d06691eeca5712319a7e8cf2085d081dca9ea47.tar.xz |
Sync with 1.7.8.5
Diffstat (limited to 'git-rebase--merge.sh')
-rw-r--r-- | git-rebase--merge.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/git-rebase--merge.sh b/git-rebase--merge.sh index 26afc75cc7..dc599077f0 100644 --- a/git-rebase--merge.sh +++ b/git-rebase--merge.sh @@ -90,10 +90,13 @@ call_merge () { finish_rb_merge () { move_to_original_branch - git notes copy --for-rewrite=rebase < "$state_dir"/rewritten - if test -x "$GIT_DIR"/hooks/post-rewrite && - test -s "$state_dir"/rewritten; then - "$GIT_DIR"/hooks/post-rewrite rebase < "$state_dir"/rewritten + if test -s "$state_dir"/rewritten + then + git notes copy --for-rewrite=rebase <"$state_dir"/rewritten + if test -x "$GIT_DIR"/hooks/post-rewrite + then + "$GIT_DIR"/hooks/post-rewrite rebase <"$state_dir"/rewritten + fi fi rm -r "$state_dir" say All done. |