Guilt v0.35
[guilt/mob.git] / regression / t-028.sh
blob83fa879d36e3307bef701efa39f57b16622b8dc9
1 #!/bin/bash
3 # Test the header code
6 source $REG_DIR/scaffold
8 cmd setup_repo
10 function fixup_time_info
12 touch -a -m -t "$TOUCH_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?