Re: [PATCH 1/5] t5312: test object deletion code paths in a corrupted repository
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Mar 17, 2015, 18:34 UTC
- Message-ID
- <5508739A.5030608@kdbg.org>
- In-Reply-To
- <20150317072844.GA25191@peff.net>
Am 17.03.2015 um 08:28 schrieb Jeff King:
Show 7 quoted lines
> +test_expect_success 'create history reachable only from a bogus-named ref' ' > + test_tick && git commit --allow-empty -m master && > + base=$(git rev-parse HEAD) && > + test_tick && git commit --allow-empty -m bogus && > + bogus=$(git rev-parse HEAD) && > + git cat-file commit $bogus >saved && > + echo $bogus >.git/refs/heads/bogus:name &&
This causes headaches on Windows: It creates an empty file, named "bogus", with all the data diverted to the alternate data stream named "name". Needless to say that this...
> +test_expect_success 'clean up bogus ref' ' > + rm .git/refs/heads/bogus:name > +'
does not remove the file "bogus", but only the alternate data stream (if at all---I forgot to check). How about .git/refs/heads/bogus..nam.e?
-- Hannes