summaryrefslogtreecommitdiff
path: root/tests/tests/fetch-localgitonly
blob: 7d603b2704f73cf0b1a7909abdd812dadb6c6e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
. tests/lib

t-archive pari-extra 3-2~dummy1
t-git-none
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

t-ok