Re: [PATCH v3 8/9] t3903-stash.sh: tests of git stash with stash-like arguments
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Aug 8, 2010, 09:32 UTC
- 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:
Show 6 quoted lines
> +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