[GUILT] handle branches with slashes in guilt-graph
[guilt.git] / regression / t-030.sh
blob0352948037037a5d8297a9b2ae6e62215d46f5ec
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