t7700: do not use "touch" unnecessarily

Some versions of touch (such as /usr/ucb/touch on Solaris) do not know about the "-r" option. This would make sense as a feature of test-chmtime, but fortunately this fix is even easier. The test does not care about the timestamp of the .keep file it creates at all, only that it exists. For such a use case, with or without portability issues around "-r", "touch" should not be used in the first place. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jan 23, 2014 at 14:55 UTC a0332337be53f266682279c72a5e553986638c87
1 file changed +1 -1
t/t7700-repack.sh
+1 -1
@@ -17,7 +17,7 @@ test_expect_success 'objects in packs marked .keep are not repacked' '
17 # The second pack will contain the excluded object
18 packsha1=$(git rev-list --objects --all | grep file2 |
19 git pack-objects pack) &&
20 - touch -r pack-$packsha1.pack pack-$packsha1.keep &&
20 + >pack-$packsha1.keep &&
21 objsha1=$(git verify-pack -v pack-$packsha1.idx | head -n 1 |
22 sed -e "s/^\([0-9a-f]\{40\}\).*/\1/") &&
23 mv pack-* .git/objects/pack/ &&