6e7e71e9b9
We wrap the git executable in a shell script that touches one source file after 'git pull'. This makes the file newer than the index even though it has not actually changed. If CTest does not refresh the index properly then the test will fail with a bogus modified file.
7 lines
115 B
Bash
Executable File
7 lines
115 B
Bash
Executable File
#!/bin/sh
|
|
if test "x$1" = "xpull"; then
|
|
"@GIT@" "$@" && sleep 1 && touch foo.txt
|
|
else
|
|
exec "@GIT@" "$@"
|
|
fi
|