From ec756f6b15c06a8ef010fdd5164b52a9b0cc188e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Mon, 1 Jun 2015 14:10:09 +0200 Subject: [PATCH] Extended test of tracking files outside the repo --- test/test-track.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/test-track.sh b/test/test-track.sh index 2c9168d9..32505893 100755 --- a/test/test-track.sh +++ b/test/test-track.sh @@ -105,6 +105,24 @@ begin_test "track outside git repo" echo "GIT_LFS_TEST_DIR should be set outside of any Git repository" exit 1 fi + + git init track-outside + cd track-outside + + git lfs track "*.file" + + git lfs track "../*.foo" || { + + # git itself returns an exit status of 128 + # $ git add ../test.foo + # fatal: ../test.foo: '../test.foo' is outside repository + # $ echo "$?" + # 128 + + [ "$?" = "128" ] + exit 0 + } + exit 1 ) end_test