regress: setup_git_repo can assert that the repo is setup as intended
[guilt.git] / regression / t-027.sh
blob2f5bb9f822b6fe6bd36e49494648b7790c5aec02
1 #!/bin/bash
3 # Test the refresh 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 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