[PATCH v4 1/8] t5516 (fetch-push): fix test restoration
We shouldn't modify the commits; it screws the following tests.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
t/t5516-fetch-push.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 67e0ab3..f4cf0db 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -1261,6 +1261,8 @@ test_expect_success 'push --follow-tag only pushes relevant tags' '
'
test_expect_success 'push --no-thin must produce non-thin pack' '
+ test_when_finished "git reset --hard v1.0" &&
+
cat >>path1 <<\EOF &&
keep base version of path1 big enough, compared to the new changes
later, in order to pass size heuristics in
--
1.9.1+fc3.9.gc73078e