From f879d34548fe3181026d9e49bb24af1987db6892 Mon Sep 17 00:00:00 2001 From: James Murty Date: Sat, 24 May 2014 14:21:34 +0100 Subject: Moved requirement for init to `checkout` operation. Since `checkout` op is where the repo really needs to be init'ed for git-fat I moved the requirement to there. This way it is still triggered by a `pull` op, but only at the end after any files have been synced. --- test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test.sh') diff --git a/test.sh b/test.sh index a5ff2f6..33c6d66 100755 --- a/test.sh +++ b/test.sh @@ -32,7 +32,13 @@ git fat push cd .. git clone fat-test fat-test2 cd fat-test2 -# Pull should fail in repo not yet init'ed for git-fat +# checkout and pull should fail in repo not yet init'ed for git-fat +git fat checkout && true +if [ $? -eq 0 ] +then + echo 'ERROR: "git fat checkout" in uninitialised repo should fail' + exit 1 +fi git fat pull -- 'a.fa*' && true if [ $? -eq 0 ] then -- cgit v1.2.1