* git-quiltimport complaining yet still working
@ 2007-04-13 20:38 Greg KH
2007-04-13 21:13 ` Don Zickus
2007-04-13 21:34 ` Linus Torvalds
0 siblings, 2 replies; 6+ messages in thread
From: Greg KH @ 2007-04-13 20:38 UTC (permalink / raw)
To: git
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
yet it still applies the patch properly.
For an example of patches that causes this output, the -stable kernel
tree queue can be used (which is where I started seeing this problem...)
Any hints? Or is it time to start bisecting?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-quiltimport complaining yet still working
2007-04-13 20:38 git-quiltimport complaining yet still working Greg KH
@ 2007-04-13 21:13 ` Don Zickus
2007-04-13 21:19 ` Greg KH
2007-04-13 21:34 ` Linus Torvalds
1 sibling, 1 reply; 6+ messages in thread
From: Don Zickus @ 2007-04-13 21:13 UTC (permalink / raw)
To: Greg KH; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
On 4/13/07, Greg KH <greg@kroah.com> wrote:
> 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
Sorry about that. I assumed all the scripts using git-mailinfo had
the stop_here command. Not sure why I made that assumption.
I changed the behaviour of git-mailinfo to allow empty patches and
have the scripts check if a patch was empty and fail. Unfortunately,
I incorrectly applied the change to git-quiltimport.
Anyway the following should fix it.
Signed-off-by: Don Zickus <dzickus@redhat.com>
[-- Attachment #2: don.patch --]
[-- Type: text/x-patch, Size: 461 bytes --]
diff --git a/git-quiltimport.sh b/git-quiltimport.sh
index edccd82..0d20dc5 100755
--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -75,7 +75,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
(cat $QUILT_PATCHES/$patch_name | git-mailinfo "$tmp_msg" "$tmp_patch" > "$tmp_info") || exit 3
test -s $dotest/patch || {
echo "Patch is empty. Was is split wrong?"
- stop_here $this
+ exit 3
}
# Parse the author information
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: git-quiltimport complaining yet still working
2007-04-13 21:13 ` Don Zickus
@ 2007-04-13 21:19 ` Greg KH
0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2007-04-13 21:19 UTC (permalink / raw)
To: Don Zickus; +Cc: git
On Fri, Apr 13, 2007 at 05:13:58PM -0400, Don Zickus wrote:
> On 4/13/07, Greg KH <greg@kroah.com> wrote:
> >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
>
> Sorry about that. I assumed all the scripts using git-mailinfo had
> the stop_here command. Not sure why I made that assumption.
>
> I changed the behaviour of git-mailinfo to allow empty patches and
> have the scripts check if a patch was empty and fail. Unfortunately,
> I incorrectly applied the change to git-quiltimport.
>
> Anyway the following should fix it.
>
> Signed-off-by: Don Zickus <dzickus@redhat.com>
> diff --git a/git-quiltimport.sh b/git-quiltimport.sh
> index edccd82..0d20dc5 100755
> --- a/git-quiltimport.sh
> +++ b/git-quiltimport.sh
> @@ -75,7 +75,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do
> (cat $QUILT_PATCHES/$patch_name | git-mailinfo "$tmp_msg" "$tmp_patch" > "$tmp_info") || exit 3
> test -s $dotest/patch || {
> echo "Patch is empty. Was is split wrong?"
> - stop_here $this
> + exit 3
Are you sure? This will exit, and yet, there was nothing really wrong
with the patch in the first place (as proven by the fact that it is
applied properly.)
Or did the patch format that can be accepted by git-quiltimport suddenly
change somehow? I'm passing mbox-like files to it, and have been since
it was created. To change this, is fine, but let me know what format
is now needed please.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-quiltimport complaining yet still working
2007-04-13 20:38 git-quiltimport complaining yet still working Greg KH
2007-04-13 21:13 ` Don Zickus
@ 2007-04-13 21:34 ` Linus Torvalds
2007-04-13 22:42 ` Junio C Hamano
2007-04-14 3:57 ` Greg KH
1 sibling, 2 replies; 6+ messages in thread
From: Linus Torvalds @ 2007-04-13 21:34 UTC (permalink / raw)
To: Greg KH, Don Zickus; +Cc: Git Mailing List
On Fri, 13 Apr 2007, Greg KH wrote:
>
> 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
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: git-quiltimport complaining yet still working
2007-04-13 21:34 ` Linus Torvalds
@ 2007-04-13 22:42 ` Junio C Hamano
2007-04-14 3:57 ` Greg KH
1 sibling, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2007-04-13 22:42 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Greg KH, Don Zickus, Git Mailing List
Linus Torvalds <torvalds@linux-foundation.org> writes:
> 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"
I am quite sure that I've said the same thing as above in my
earlier message to fix this exact thing, but as usual I appear
to have sent it to the list and then forgot to apply it myself.
Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git-quiltimport complaining yet still working
2007-04-13 21:34 ` Linus Torvalds
2007-04-13 22:42 ` Junio C Hamano
@ 2007-04-14 3:57 ` Greg KH
1 sibling, 0 replies; 6+ messages in thread
From: Greg KH @ 2007-04-14 3:57 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Don Zickus, Git Mailing List
On Fri, Apr 13, 2007 at 02:34:18PM -0700, Linus Torvalds wrote:
>
>
> On Fri, 13 Apr 2007, Greg KH wrote:
> >
> > 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"
Thanks, that seems to do the trick for me.
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-14 4:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13 20:38 git-quiltimport complaining yet still working Greg KH
2007-04-13 21:13 ` Don Zickus
2007-04-13 21:19 ` Greg KH
2007-04-13 21:34 ` Linus Torvalds
2007-04-13 22:42 ` Junio C Hamano
2007-04-14 3:57 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).