Follow upstream changes -- rest
[git-darcs-import.git] / tests / repoformat.sh
blob9b8693d4720a3414f156bbf3370da5018d849353
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 echo gobbledygook > _darcs/format
11 cd ..
13 not darcs get temp1 temp2 2> log
14 grep -i "can't understand repository format" log
15 rm -rf temp1 temp2 log