From 80ffc69e9d5cc652a611e84df5d11d80d8995ff6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Aug 2016 18:28:10 +0100 Subject: Test suite: Remove refs/remotes/dgit/dgit/sid from pari-extra worktree 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 --- tests/tests/fetch-localgitonly | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/tests/fetch-localgitonly') diff --git a/tests/tests/fetch-localgitonly b/tests/tests/fetch-localgitonly index 1177ed6..9d6a2ac 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 -- cgit v1.2.1