Find git executable at run time
[git-darcs-import.git] / tests / issue53.sh
blob1cc25129eac35f8d8d84b0db6dcc8d53cf44d878
1 #!/usr/bin/env bash
3 set -ev
5 # The builtin ! has the wrong semantics for not.
6 not () { "$@" && exit 1 || :; }
8 if echo $OS | grep -i windows; then
9 echo This test does not work under Windows
10 exit 0
13 # pull from not empty repo to empty repo
14 rm -rf temp1
15 mkdir temp1
17 cd temp1
18 darcs init
19 echo a > Aux.hs
20 not darcs add Aux.hs
21 darcs add --reserved-ok Aux.hs
22 echo b > foo
23 darcs add foo
24 darcs record -am 'two files'
25 not darcs mv foo com1
26 darcs mv --reserved-ok foo com1
27 cd ..
29 rm -rf temp1