Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue184_add.sh
blob4f1bc76ed20dc9cdd1f0c813d3e54872cac4647f
1 #!/usr/bin/env bash
2 set -ev
4 not () { "$@" && exit 1 || :; }
6 # For issue184: recording files in directories that haven't explicity been added.
8 rm -rf temp1
9 mkdir temp1
10 cd temp1
11 darcs init
12 mkdir new
13 mkdir new/dir
14 touch new/dir/t.t
15 darcs add new/dir/t.t
16 darcs record -am test new/dir/t.t > log
17 not grep "don't want to record" log
18 cd ..
20 rm -rf temp1