fast-import: fix compilation on MinGW
[4msysgit-hv.git] / t / t1301-shared-repo.sh
blobdb47f34a155f4213a58e8dab4790f1597c54123f
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 say "update-server-info not supported - skipping tests"
18 test_done
19 exit 0
21 test_expect_success 'update-server-info honors core.sharedRepository' '
22 : > a1 &&
23 git add a1 &&
24 test_tick &&
25 git commit -m a1 &&
26 umask 0277 &&
27 git update-server-info &&
28 actual="$(ls -l .git/info/refs)" &&
29 case "$actual" in
30 -r--r--r--*)
31 : happy
34 echo Oops, .git/info/refs is not 0444
35 false
37 esac
40 test_done