Re: git subtree bug produces divergent descendants
- From
David Ware <davidw@realtimegenomics.com>
- Date
- Dec 7, 2015, 21:01 UTC
- Message-ID
- <CAET=KiXHoasXv6_y=SLZEAd=CCzj0T3zW6Wb7rF42=8v2LxZ+w@mail.gmail.com>
- In-Reply-To
- <20151207045307.GA624@flurp.local>
Thanks for taking the time to look over it. I'm not familiar with the process here.
On Mon, Dec 7, 2015 at 5:53 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 17 quoted lines
> Tests don't automatically return to the directory prior to the 'cd', > so when this test ends, the current directory will still be > 'git_subtree_split_check'. If someone later adds a test following > this one, that test will execute within 'git_subtree_split_check', > which might not be expected by the test writer. > > To ensure that the prior working directory is restored at the end of > the test (regardless of success or failure), tests typically employ a > subshell using this idiom: > > mkdir foo && > ( > cd foo && > ... && > ... > ) >
I'm not at all familiar with this test harness so I had a few problems here (like this, and the bash variable). Thank you for the advice.
Cheers, Dave Ware