repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow upstream changes -- rest
[git-darcs-import.git]
/
tests
/
prehook.sh
blob
a9fcde9a030c2c81973beca6e4514f9eba62a70f
1
#!/usr/bin/env bash
2
3
set -ev
4
5
rm
-rf
temp1
6
mkdir temp1
7
cd
temp1
8
darcs init
9
touch
foo
10
darcs add foo
11
12
# Check that prehook runs
13
darcs whatsnew
-s --prehook
'touch prehook-ran'
14
test -f
prehook-ran
15
rm
prehook-ran
16
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
22
23
24
echo
Successful.
25
26
cd
..
27
rm
-rf
temp1