chiark / gitweb /
Test suite: Remove refs/remotes/dgit/dgit/sid from pari-extra worktree
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Aug 2016 17:28:10 +0000 (18:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Sep 2016 12:41:48 +0000 (13:41 +0100)
This, effectively, simulates a previous fetch of something.  Do this
in the actual tests instead: in this case, only necessary in
fetch-localgitonly.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/fetch-localgitonly
tests/worktrees/pari-extra_3-1.tar

index 1177ed6..9d6a2ac 100755 (executable)
@@ -8,6 +8,10 @@ t-worktree 3-1
 cd $p
 old=`git rev-parse HEAD`
 
+# pretend that we previously fetched 3-1 (otherwise, dgit
+# is entitled to, and will, make a new history)
+git-update-ref refs/remotes/dgit/dgit/sid refs/heads/dgit/sid
+
 t-dgit pull
 
 t-cloned-fetched-good
index 81a6a54..62efeb9 100644 (file)
Binary files a/tests/worktrees/pari-extra_3-1.tar and b/tests/worktrees/pari-extra_3-1.tar differ