Follow upstream changes -- rest
[git-darcs-import.git] / tests / add_in_subdir.sh
blobc95b22478ab59a7af2ad4083e5bebb53dcd8cb6d
1 #!/usr/bin/env bash
2 set -ev
4 not () { "$@" && exit 1 || :; }
6 rm -rf temp1 temp2
7 mkdir temp1
8 cd temp1
9 darcs init
10 mkdir dir
11 echo zig > dir/foo
12 darcs add dir dir/foo
13 darcs record -a -m add_foo
14 # Create second repo inside the first
15 darcs init --repodir=temp2
16 cd temp2
17 darcs pull -a ../../temp1
18 darcs changes -s | grep "A ./dir/foo"
19 # no differences
20 diff ../../temp1/dir/foo dir/foo
21 cd ..
23 rm -rf temp1