regression: test the new init options
[guilt.git] / regression / t-010.sh
blobc9a582566457186ca53eaa1c46e010dd467ea8f5
1 #!/bin/bash
3 # Test the init code
6 source $REG_DIR/scaffold
8 function opts
10 cat << DONE
14 DONE
17 cmd setup_git_repo
19 opts | while read opt ; do
20 cmd reset_git_repo
22 cmd guilt-init $opt
23 cmd list_files
24 shouldfail guilt-init $opt
25 cmd list_files
26 done
28 cmd git-branch other
29 cmd git-checkout other
31 cmd guilt-init
32 cmd list_files
33 shouldfail guilt-init
34 cmd list_files