chiark / gitweb /
Test suite: Remove refs/remotes/dgit/dgit/sid from pari-extra worktree
[dgit.git] / tests / tests / fetch-localgitonly
index 1177ed63500ce8cf052cf5071ea8b5f9998b6b13..9d6a2accce6122af623a56c59779d755a17623a2 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