Guilt v0.32-rc1
[guilt.git] / regression / t-027.sh
blobd9cb18be9be13666c2f10d69dcf403f468630b27
1 #!/bin/bash
3 # Test the refresh 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 echo abcdef >> def
16 shouldfail guilt-refresh
18 cmd list_files
20 cmd git-reset --hard HEAD
22 cmd guilt-push modify
24 echo abcdef >> def
25 cmd guilt-refresh
26 cmd guilt-pop
27 fixup_time_info modify
28 cmd guilt-push modify
30 cmd list_files
32 # FIXME: we should check that the patch actually contains what it should,
33 # test arguments work the way they should