repo.or.cz
/
guilt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Guilt v0.32-rc2
[guilt.git]
/
regression
/
t-030.sh
blob
f659756e5551e1279984e524be566a491f2ae123
1
#!/bin/bash
2
#
3
# Test the commit code
4
#
5
6
source
$REG_DIR
/
scaffold
7
8
cmd setup_repo
9
10
function
opts_to_try
11
{
12
cat
<< DONE
13
-n 0
14
-n 1
15
-a
16
--all
17
DONE
18
}
19
20
shouldfail guilt-commit
21
22
cmd list_files
23
24
opts_to_try |
while
read
opt
;
do
25
cmd guilt-commit
$opt
26
27
cmd list_files
28
done
29
30
31
cmd guilt-push
-a
32
33
shouldfail guilt-commit
34
35
cmd list_files
36
37
opts_to_try |
while
read
opt
;
do
38
cmd guilt-commit
$opt
39
40
cmd list_files
41
done
42
43
echo
> /
dev
/
null