<div dir="ltr"><div dir="ltr">Very good point!<div><br></div><div>Addressed the multiple refspec issue by moving the block down to the while loop as well as fixed the whitespace oversight.</div><div><br></div><div><a href="https://github.com/spwhitton/git-remote-gcrypt/commit/5b6e7f3343c11648862f3728c9c5cb84d5759636">https://github.com/spwhitton/git-remote-gcrypt/commit/5b6e7f3343c11648862f3728c9c5cb84d5759636</a><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 22, 2020 at 4:25 AM Sean Whitton <<a href="mailto:spwhitton@spwhitton.name">spwhitton@spwhitton.name</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
On Tue 02 Jun 2020 at 10:42AM +01, Jay Colson wrote:<br>
<br>
> <a href="https://github.com/spwhitton/git-remote-gcrypt/commit/effdd2cf440963a790c668ea045b4cf65b0bdf00" rel="noreferrer" target="_blank">https://github.com/spwhitton/git-remote-gcrypt/commit/effdd2cf440963a790c668ea045b4cf65b0bdf00</a><br>
<br>
Unfortunately, your current patch doesn't work. It assumes that there<br>
is exactly one refspec in $1 inside do_push, which might not be true.<br>
<br>
I think that you need to do the check after the loop which begins<br>
<br>
while IFS=: read -r src_ dst_ # << +src:dst<br>
<br>
as then you'll have a list of refspecs and you can just see if any of<br>
them don't start with a '+'.<br>
<br>
I also noticed that your patch introduces indentation and whitespace<br>
errors; I'd be grateful if you could follow the style of the existing<br>
code in your next revision.<br>
<br>
Thanks!<br>
<br>
-- <br>
Sean Whitton<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><a href="tel:+353866993893" target="_blank"><img src="https://signature.karma.net/signature/" style="margin: auto;"></a><br></div></div></div></div>