autotagging: fix a tiny quirk, and document autotagging properly
[guilt.git] / regression / t-028.sh
blobf6f4d18860ca20352a12a414e2ad3943d6cb3dc9
1 #!/bin/bash
3 # Test the header 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 shouldfail guilt-header
17 cmd guilt-push -a
19 cmd guilt-new -s -m "blah blah blah" patch-with-some-desc
20 cmd guilt-pop
21 fixup_time_info patch-with-some-desc
22 cmd guilt-push
24 cmd list_files
26 cmd guilt-header
28 guilt-series | while read n; do
29 cmd guilt-header $n
30 done
32 shouldfail guilt-header non-existant 2>&1
34 # FIXME: how do we check that -e works?