From: Johannes Sixt Date: Sun, 08 Aug 2010 09:32:56 GMT Subject: Re: [PATCH v3 8/9] t3903-stash.sh: tests of git stash with stash-like arguments Message-ID: <201008081132.56998.j6t@kdbg.org> In-Reply-To: <1281242771-24764-9-git-send-email-jon.seymour@gmail.com> On Sonntag, 8. August 2010, Jon Seymour wrote: > +test_expect_success 'stash branch - no stashes on stack, stash-like > argument' ' + git stash clear && > + test_when_finished "git reset --hard HEAD" && > + git reset --hard && > + echo foo >> file && > + git tag stash-tag $(git stash create) && To catch failures in $(git stash create), you should rewrite lines like this one as: stashid=$(git stash create) && git tag stash-tag $stashid && -- Hannes