From: David Ware Date: Mon, 07 Dec 2015 21:01:32 GMT Subject: Re: git subtree bug produces divergent descendants Message-ID: 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 wrote: > 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