Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / git / t / t1301-shared-repo.sh
blob3bf78ae619d2671d2c5915af628ec20ddc1db78d
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 test 444 = $(stat -c %a .git/info/refs)
31 test_done