summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bf4f1b)
raw | patch | inline | side by side (parent: 6bf4f1b)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 16 Mar 2008 07:50:22 +0000 (00:50 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 16 Mar 2008 08:00:40 +0000 (01:00 -0700) |
When rebasing changes that contain issues that the pre-commit hook flags
as problematic, the rebase cannot be continued. However, rebase is about
transplanting commits that are already made with as little distortion as
possible, and pre-commit check should not interfere.
Earlier, c5b09fe (Avoid update hook during git-rebase --interactive,
2007-12-19) fixed "rebase -i", but "rebase -m" shared the same issue.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
as problematic, the rebase cannot be continued. However, rebase is about
transplanting commits that are already made with as little distortion as
possible, and pre-commit check should not interfere.
Earlier, c5b09fe (Avoid update hook during git-rebase --interactive,
2007-12-19) fixed "rebase -i", but "rebase -m" shared the same issue.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh | patch | blob | history |
diff --git a/git-rebase.sh b/git-rebase.sh
index 6b9af962a9cee734510518e82cf2537441ed843a..bc0c1c4abc5032fe88bd22deeeb5fe5e0fee47f9 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
cmt=`cat "$dotest/current"`
if ! git diff-index --quiet HEAD --
then
- if ! git-commit -C "$cmt"
+ if ! git commit --no-verify -C "$cmt"
then
echo "Commit failed, please do not call \"git commit\""
echo "directly, but instead do one of the following: "