Ignore dirty submodule states in "git pull --rebase"

This is a companion patch to 6848d58c(Ignore dirty submodule states
during rebase and stash).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin 2008-07-22 22:41:41 +01:00 committed by Junio C Hamano
parent c65233fe2c
commit 7d90c8ee15

View File

@ -107,9 +107,9 @@ error_on_no_merge_candidates () {
} }
test true = "$rebase" && { test true = "$rebase" && {
git update-index --refresh && git update-index --ignore-submodules --refresh &&
git diff-files --quiet && git diff-files --ignore-submodules --quiet &&
git diff-index --cached --quiet HEAD -- || git diff-index --ignore-submodules --cached --quiet HEAD -- ||
die "refusing to pull with rebase: your working tree is not up-to-date" die "refusing to pull with rebase: your working tree is not up-to-date"
. git-parse-remote && . git-parse-remote &&