builtin-apply: stronger indent-with-on-tab fixing
[git/jbf-maint.git] / t / t1301-shared-repo.sh
blob6bfe19a4e5e8a22bfd286636e62c0c2d5cd56846
1 #!/bin/sh
3 # Copyright (c) 2007 Johannes Schindelin
6 test_description='Test shared repository initialization'
8 . ./test-lib.sh
10 test_expect_success 'shared=all' '
11 mkdir sub &&
12 cd sub &&
13 git init --shared=all &&
14 test 2 = $(git config core.sharedrepository)
17 test_expect_success 'update-server-info honors core.sharedRepository' '
18 : > a1 &&
19 git add a1 &&
20 test_tick &&
21 git commit -m a1 &&
22 umask 0277 &&
23 git update-server-info &&
24 actual="$(ls -l .git/info/refs)" &&
25 case "$actual" in
26 -r--r--r--*)
27 : happy
30 echo Oops, .git/info/refs is not 0444
31 false
33 esac
36 test_done