"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
Re: gitconfig: fix read/write out of bound
To:
Stefan Sperling <stsp@stsp.name>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 19 Feb 2023 10:31:20 +0100

Download raw body.

Thread
On 2023/02/19 10:19:41 +0100, Stefan Sperling <stsp@stsp.name> wrote:
> On Sat, Feb 18, 2023 at 06:47:21PM +0100, Omar Polo wrote:
> > +	(cd "$testroot/repo" && got log -l1 | grep ^from: > $testroot/stdout)
> > +	ret=$?
> > +	if [ $ret -ne 0 ]; then
> > +		test_done "$testroot" "$ret"
> > +		return 1
> > +	fi
> > +
> > +	echo "from: Flank Luck <flan_luck@openbsd.org>" \
> 
> Who is Flank?

woops :)

> > +		> $testroot/stdout.expectd
                                   ^^^^^^^

due to this typo it was using the previous stdout.expected and so
haven't spotted the issue.  Fixed both, thanks!

> > +	cmp -s $testroot/stdout.expected $testroot/stdout
> > +	ret=$?
> > +	if [ $ret -ne 0 ]; then
> > +		diff -u $testroot/stdout.expected $testroot/stdout
> > +	fi
> >  	test_done "$testroot" "$ret"
> >  }
> >  
> > 
> >