3 #=======================================================================
5 # File ID: 8959f7a6-2961-11e3-bf45-001f3b596ec9
6 # Set config values in bare/non-bare Git repositories
7 # License: GNU General Public License version 2 or later.
8 #=======================================================================
12 if test "$mode" = "yes"; then
13 echo git-bare
: Setting $
(pwd) to bare
14 git config core.bare true
15 git config
--unset core.logallrefupdates
16 elif test "$mode" = "no"; then
17 echo git-bare
: Setting $
(pwd) to non-bare
18 git config core.bare false
19 git config core.logallrefupdates true
21 echo 'Syntax: git-bare [yes|no]'