chiark / gitweb /
dgit: --clean=dpkg-source: Check for untracked unignored files
[dgit.git] / tests / tests / fetch-localgitonly
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-archive pari-extra 3-2~dummy1
6 t-git-none
7 t-worktree 3-1
8 cd $p
9 old=`git rev-parse HEAD`
10
11 # pretend that we previously fetched 3-1 (otherwise, dgit
12 # is entitled to, and will, make a new history)
13 git update-ref refs/remotes/dgit/dgit/sid refs/heads/dgit/sid
14
15 t-dgit pull
16
17 t-cloned-fetched-good
18 t-has-ancestor $old
19
20 t-ok