commit 2e939403f73b39372030e63ac051b8f6233d6c31 Author: Dominic Hamon dominic@measurementlab.net Date: Mon Dec 17 11:19:05 2012 +0000
Apply patch from Dominic at Measurement Labs; adds check for missing file to commithook script. --- before_i_commit.sh | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/before_i_commit.sh b/before_i_commit.sh index 8b8180f..fda323e 100755 --- a/before_i_commit.sh +++ b/before_i_commit.sh @@ -10,7 +10,7 @@ # rm *.yamloo; rm before_i_commit.log #
-rm before_i_commit.log +rm -f before_i_commit.log
find . -type f -name "*.py[co]" -delete
@@ -18,7 +18,7 @@ find . -type f -name "*.py[co]" -delete
echo "Below you should not see anything" echo "---------------------------------" -grep "Error: " before_i_commit.log +[ -f before_i_commit.log ] && grep "Error: " before_i_commit.log echo "---------------------------------" echo "If you do, it means something is wrong." echo "Read through the log file and fix it."
tor-commits@lists.torproject.org