From fb3753c55d0acd09225fc4982768a3235a53f1a7 Mon Sep 17 00:00:00 2001 From: David Brown Date: Tue, 11 Oct 2016 12:11:57 +0100 Subject: [PATCH] Add hard reset and clean to postpush script. --- src/tools/make/postpush.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/make/postpush.pl b/src/tools/make/postpush.pl index fe9e62ad..47956785 100755 --- a/src/tools/make/postpush.pl +++ b/src/tools/make/postpush.pl @@ -43,7 +43,7 @@ if ($buildneeded) { } else { close(STDIN); close(STDOUT); close(STDERR); # child process system 'echo Syncing voc>postpush.log'; - system '(cd voc; git pull; git checkout -f ' . $branch . '; git pull; git checkout -f) >>postpush.log'; + system '(cd voc; git reset --hard; git clean -dfx; git pull; git checkout -f ' . $branch . '; git pull; git checkout -f) >>postpush.log'; exec 'perl voc/src/tools/make/buildall.pl ' . $branch . ' >/tmp/buildall.log'; exit; }