* b4 shazam in a subdir
@ 2023-05-02 17:06 Andrew Cooper
2023-05-02 17:13 ` Konstantin Ryabitsev
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Andrew Cooper @ 2023-05-02 17:06 UTC (permalink / raw)
To: tools
Hello,
When using b4 shazam in a subdir of a git repository, you end up with
the patch(es) applied correctly, but also the diff structure expanded
under the current dir, and the working tree dirty back to the state
prior to applying the patch(es).
Running from the root of the repo leaves everything in order, but it
would be great if b4 wasn't sensitive to $CWD inside a repository.
Thanks,
~Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: b4 shazam in a subdir
2023-05-02 17:06 b4 shazam in a subdir Andrew Cooper
@ 2023-05-02 17:13 ` Konstantin Ryabitsev
2023-05-02 17:18 ` Kernel.org Bugbot
2023-06-22 20:21 ` Kernel.org Bugbot
2 siblings, 0 replies; 5+ messages in thread
From: Konstantin Ryabitsev @ 2023-05-02 17:13 UTC (permalink / raw)
To: Andrew Cooper; +Cc: tools
On Tue, May 02, 2023 at 06:06:15PM +0100, Andrew Cooper wrote:
> Hello,
>
> When using b4 shazam in a subdir of a git repository, you end up with
> the patch(es) applied correctly, but also the diff structure expanded
> under the current dir, and the working tree dirty back to the state
> prior to applying the patch(es).
>
> Running from the root of the repo leaves everything in order, but it
> would be great if b4 wasn't sensitive to $CWD inside a repository.
Thanks for the report.
bugbot assign to me
-K
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: b4 shazam in a subdir
2023-05-02 17:06 b4 shazam in a subdir Andrew Cooper
2023-05-02 17:13 ` Konstantin Ryabitsev
@ 2023-05-02 17:18 ` Kernel.org Bugbot
2023-06-22 20:21 ` Kernel.org Bugbot
2 siblings, 0 replies; 5+ messages in thread
From: Kernel.org Bugbot @ 2023-05-02 17:18 UTC (permalink / raw)
To: andrew.cooper3, tools
Hello:
This conversation is now tracked by Kernel.org Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=217393
There is no need to do anything else, just keep talking.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: b4 shazam in a subdir
2023-05-02 17:06 b4 shazam in a subdir Andrew Cooper
2023-05-02 17:13 ` Konstantin Ryabitsev
2023-05-02 17:18 ` Kernel.org Bugbot
@ 2023-06-22 20:21 ` Kernel.org Bugbot
2023-06-30 12:35 ` andrew.cooper3
2 siblings, 1 reply; 5+ messages in thread
From: Kernel.org Bugbot @ 2023-06-22 20:21 UTC (permalink / raw)
To: tools, konstantin, andrew.cooper3
Konstantin Ryabitsev writes in commit 73291165599839de9a2dcf4986c35a2041b22d09:
shazam: switch to top of git tree before running git-am
According to reports, running "git am" when not at the top of the tree
can result in the dirty tree state (see linked conversation). This
ensures that we switch back to the top of the git tree before running
"git am" and then switch back.
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Link: https://msgid.link/4e4757cf-7351-9aff-fada-2b03ff82b2dc@citrix.com
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217393
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
(via https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=732911655998)
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: b4 shazam in a subdir
2023-06-22 20:21 ` Kernel.org Bugbot
@ 2023-06-30 12:35 ` andrew.cooper3
0 siblings, 0 replies; 5+ messages in thread
From: andrew.cooper3 @ 2023-06-30 12:35 UTC (permalink / raw)
To: Kernel.org Bugbot, tools, konstantin
On 22/06/2023 9:21 pm, Kernel.org Bugbot wrote:
> Konstantin Ryabitsev writes in commit 73291165599839de9a2dcf4986c35a2041b22d09:
>
> shazam: switch to top of git tree before running git-am
>
> According to reports, running "git am" when not at the top of the tree
> can result in the dirty tree state (see linked conversation). This
> ensures that we switch back to the top of the git tree before running
> "git am" and then switch back.
>
> Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Link: https://msgid.link/4e4757cf-7351-9aff-fada-2b03ff82b2dc@citrix.com
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217393
> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
>
> (via https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=732911655998)
Just checked v0.12.3 and this is working now. Thanks!
~Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-30 12:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-02 17:06 b4 shazam in a subdir Andrew Cooper
2023-05-02 17:13 ` Konstantin Ryabitsev
2023-05-02 17:18 ` Kernel.org Bugbot
2023-06-22 20:21 ` Kernel.org Bugbot
2023-06-30 12:35 ` andrew.cooper3
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).