]> git.ipfire.org Git - thirdparty/git.git/blame - t/t1301-shared-repo.sh
Merge branch 'maint'
[thirdparty/git.git] / t / t1301-shared-repo.sh
CommitLineData
83525227
JS
1#!/bin/sh
2#
3# Copyright (c) 2007 Johannes Schindelin
4#
5
6test_description='Test shared repository initialization'
7
8. ./test-lib.sh
9
10test_expect_success 'shared=all' '
11 mkdir sub &&
12 cd sub &&
13 git init --shared=all &&
14 test 2 = $(git config core.sharedrepository)
15'
16
17test_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 &&
19b28bf5
AL
24 actual="$(ls -l .git/info/refs)" &&
25 case "$actual" in
26 -r--r--r--*)
27 : happy
28 ;;
29 *)
30 echo Oops, .git/info/refs is not 0444
31 false
32 ;;
33 esac
83525227
JS
34'
35
36test_done