test-convert-git.t: make copy detection deterministic
authorSiddharth Agarwal <sid0@fb.com>
Wed, 24 Sep 2014 11:20:35 -0700
changeset 22558 064a912ebfc2
parent 22557 ace8320156ef
child 22559 4e0b696a1cb3
test-convert-git.t: make copy detection deterministic Since both 'bar' and 'bar-copied' matched 'bar-copied2', Git's copy detection would sometimes result in 'bar' being the source for 'bar-copied2' and sometimes 'bar-copied'. Change bar in a separate commit so that that would no longer be the case.
tests/test-convert-git.t
--- a/tests/test-convert-git.t	Tue Sep 23 17:12:27 2014 -0700
+++ b/tests/test-convert-git.t	Wed Sep 24 11:20:35 2014 -0700
@@ -278,6 +278,8 @@
   R foo
 
   $ cd git-repo2
+  $ echo bar2 >> bar
+  $ commit -a -m 'change bar'
   $ cp bar bar-copied2
   $ git add bar-copied2
   $ commit -a -m 'copy with no changes'