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>
cd $p
old=`git rev-parse HEAD`
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
t-dgit pull
t-cloned-fetched-good