Follow upstream changes -- rest
[git-darcs-import.git] / tests / init.sh
blobb9d3f3739696a908e81ed83e29307f7e58ecbaff
1 #!/usr/bin/env bash
2 set -ev
4 not () { "$@" && exit 1 || :; }
6 rm -rf temp1 temp2
8 mkdir temp1
9 darcs init
10 test -d _darcs
11 not darcs init
12 cd ..
14 # Some tests for the repodir flag
15 mkdir temp2
16 darcs init --repodir temp2
17 test -d temp2/_darcs
19 rm -rf temp1 temp2