From f71ece1eba525fe385e6b10e89e4ca4eed97c9fc Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Mon, 27 Jul 2015 18:01:39 +0100 Subject: [PATCH] Fix pre-push test; there is now no output from push when nothing to do --- test/test-pre-push.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-pre-push.sh b/test/test-pre-push.sh index eefc5684..36523eba 100755 --- a/test/test-pre-push.sh +++ b/test/test-pre-push.sh @@ -17,7 +17,8 @@ begin_test "pre-push" echo "refs/heads/master master refs/heads/master 0000000000000000000000000000000000000000" | git lfs pre-push origin "$GITSERVER/$reponame" 2>&1 | tee push.log - grep "(0 of 0 files) 0 B 0" push.log + # no output if nothing to do + [ "$(du -k push.log | cut -f 1)" == "0" ] git lfs track "*.dat" echo "hi" > hi.dat