chiark / gitweb /
dgit(1): Some more info about --deliberately.
[dgit.git] / tests / tests / fetch-localgitonly
index 7937a6f3600e2bdcb7112cd0418dc13229c0081f..b0ade5f2991e534efdd2b476e475d9b96c07272d 100755 (executable)
@@ -8,9 +8,13 @@ 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
 t-has-ancestor $old
 
-echo ok
+echo ok.