summaryrefslogtreecommitdiff
path: root/tests/tests/fetch-localgitonly
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/fetch-localgitonly')
-rwxr-xr-xtests/tests/fetch-localgitonly6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests/fetch-localgitonly b/tests/tests/fetch-localgitonly
index 1177ed6..7d603b2 100755
--- a/tests/tests/fetch-localgitonly
+++ b/tests/tests/fetch-localgitonly
@@ -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.
+t-ok