docs: handle `git describe` failing
[guilt.git] / regression / t-025.sh
blobfd9b62a38c6d067f2f9ac0749defed0d0cd0fbc5
1 #!/bin/bash
3 # Test the new code
6 source $REG_DIR/scaffold
8 cmd setup_repo
10 function fixup_time_info
12 touch -d "$GIT_COMMITTER_DATE" ".git/patches/master/$1"
15 for pname in file dir/file dir/subdir/file ; do
16 cmd guilt-new "$pname"
17 cmd guilt-pop
18 fixup_time_info "$pname"
19 cmd guilt-push
21 cmd list_files
22 done
24 cmd guilt-push --all
26 cmd guilt-new append
27 cmd guilt-pop
28 fixup_time_info append
29 cmd guilt-push
31 cmd list_files
33 cmd guilt-pop --all
35 cmd guilt-new prepend
36 cmd guilt-pop
37 fixup_time_info prepend
38 cmd guilt-push
40 cmd list_files
42 shouldfail guilt-new "white space"
44 cmd list_files
46 for pname in prepend mode /abc ./blah ../blah abc/./blah abc/../blah abc/. abc/.. abc/ ; do
47 shouldfail guilt-new "$pname" 2>&1
49 cmd list_files
50 done