Guilt v0.37-rc1
[guilt.git] / regression / t-030.sh
blob06bd58fcd0612bbc918868190f9af99eb5c97a48
1 #!/bin/bash
3 # Test the commit code
6 source "$REG_DIR/scaffold"
8 cmd setup_repo
10 function opts_to_try
12 cat << DONE
13 -n 0
14 -n 1
16 --all
17 DONE
20 shouldfail guilt commit
22 cmd list_files
24 opts_to_try | while read opt; do
25 cmd guilt commit $opt
27 cmd list_files
28 done
31 cmd guilt push -a
33 shouldfail guilt commit
35 cmd list_files
37 opts_to_try | while read opt; do
38 cmd guilt commit $opt
40 cmd list_files
41 done
43 echo > /dev/null