X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Ffetch-localgitonly;h=b0ade5f2991e534efdd2b476e475d9b96c07272d;hb=dc2d5ffb3627335e6522ddb7bf526880dc699762;hp=1177ed63500ce8cf052cf5071ea8b5f9998b6b13;hpb=2a967d305326721eb9fb96c7ace8796a2a238ab8;p=dgit.git diff --git a/tests/tests/fetch-localgitonly b/tests/tests/fetch-localgitonly index 1177ed63..b0ade5f2 100755 --- a/tests/tests/fetch-localgitonly +++ b/tests/tests/fetch-localgitonly @@ -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