Merge branch 'darcs' into master
[git-darcs-import.git] / tests / prehook.sh
bloba9fcde9a030c2c81973beca6e4514f9eba62a70f
1 #!/usr/bin/env bash
3 set -ev
5 rm -rf temp1
6 mkdir temp1
7 cd temp1
8 darcs init
9 touch foo
10 darcs add foo
12 # Check that prehook runs
13 darcs whatsnew -s --prehook 'touch prehook-ran'
14 test -f prehook-ran
15 rm prehook-ran
17 # Check that --prehook works with defaults...
18 echo ALL --prehook touch prehook-ran > _darcs/prefs/defaults
19 darcs whatsnew -s
20 test -f prehook-ran
21 rm prehook-ran
24 echo Successful.
26 cd ..
27 rm -rf temp1