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

Re: git-quiltimport complaining yet still working

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 13, 2007, 21:34 UTC
Message-ID
<Pine.LNX.4.64.0704131431040.28042@woody.linux-foundation.org>
In-Reply-To
<20070413203837.GA27660@kroah.com>
On Fri, 13 Apr 2007, Greg KH wrote:
Show 6 quoted lines
>
> In git 1.5.1 the quiltimport function started complaining in a new way:
> 
> 	libata-clear-tf-before-doing-request-sense.patch
> 	Patch is empty.  Was is split wrong?
> 	/usr/bin/git-quiltimport: line 78: stop_here: command not found
This is an *old* bug. It got fixed once already. Did it get re-introduced?
Ahh - somebody copied the bug from git-applymbox
> Any hints?  Or is it time to start bisecting?
This should fix it.

There were two bugs: "stop_here" doesn't exist, but the bug that causes this code to trigger in the *first* place is the wrong use of "$dotest". It should be ".dotest"

		Linus
---
diff --git a/git-quiltimport.sh b/git-quiltimport.sh
index edccd82..018cc75 100755
--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -73,9 +73,9 @@ mkdir $tmp_dir || exit 2
 for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
 	echo $patch_name
 	(cat $QUILT_PATCHES/$patch_name | git-mailinfo "$tmp_msg" "$tmp_patch" > "$tmp_info") || exit 3
-	test -s $dotest/patch || {
+	test -s .dotest/patch || {
 		echo "Patch is empty.  Was is split wrong?"
-		stop_here $this
+		exit 1
 	}
 
 	# Parse the author information
Previous: Greg KHNext: Junio C Hamano
Message 4 of 6 in “git-quiltimport complaining yet still working”
  1. Greg KHApr 13, 2007
  2. Don ZickusApr 13, 2007
  3. Greg KHApr 13, 2007
  4. Linus TorvaldsApr 13, 2007
  5. Junio C HamanoApr 13, 2007
  6. Greg KHApr 14, 2007

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.