X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Ffetch-localgitonly;fp=tests%2Ftests%2Ffetch-localgitonly;h=9d6a2accce6122af623a56c59779d755a17623a2;hb=80ffc69e9d5cc652a611e84df5d11d80d8995ff6;hp=1177ed63500ce8cf052cf5071ea8b5f9998b6b13;hpb=99a299dd30639bf13efbfa7862b8dda458520393;p=dgit.git diff --git a/tests/tests/fetch-localgitonly b/tests/tests/fetch-localgitonly index 1177ed63..9d6a2acc 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