git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Ignore dirty submodule states in "git pull --rebase"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 22, 2008, 21:41 UTC
Message-ID
<alpine.DEB.1.00.0807222241200.8986@racer>

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

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 git-pull.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index 6afd4e2..75c3610 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -107,9 +107,9 @@ error_on_no_merge_candidates () {
 }
 
 test true = "$rebase" && {
-	git update-index --refresh &&
-	git diff-files --quiet &&
-	git diff-index --cached --quiet HEAD -- ||
+	git update-index --ignore-submodules --refresh &&
+	git diff-files --ignore-submodules --quiet &&
+	git diff-index --ignore-submodules --cached --quiet HEAD -- ||
 	die "refusing to pull with rebase: your working tree is not up-to-date"
 
 	. git-parse-remote &&
-- 
1.6.0.rc0.22.gf2096d.dirty
Message 1 of 1 in “Ignore dirty submodule states in "git pull --rebase"”
  1. Ignore dirty submodule states in "git pull --rebase"Johannes Schindelin, Jul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.