Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-19 03:30:36 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-19 03:30:36 +0400
commita8055f8a8ed10a6d3272382f38a0808427ab4921 (patch)
tree4f300ddf0b04d00aa651b53595647c4c47f51c24 /git-rebase-script
parentd571c2be99cb4ab96ff70c62c31d587271db9567 (diff)
Also make git-rebase-script stricter about dirty working tree.
Otherwise the first commit rebase makes could include whatever dirty state the original working tree had. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-rebase-script')
-rwxr-xr-xgit-rebase-script4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-rebase-script b/git-rebase-script
index 5bb3bd97af..a335b99178 100755
--- a/git-rebase-script
+++ b/git-rebase-script
@@ -27,7 +27,9 @@ esac
upstream=`git-rev-parse --verify "$1"` &&
ours=`git-rev-parse --verify "$ours_symbolic"` || exit
-test "$(git-diff-cache --cached "$ours")" = "" ||
+different1=$(git-diff-cache --name-only --cached "$ours") &&
+different2=$(git-diff-cache --name-only "$ours") &&
+test "$different1$different2" = "" ||
die "Your working tree does not match $ours_symbolic."
git-read-tree -m -u $ours $upstream &&