installed_progs.t: Python checks stdout too, 150 ok
[sunny256-utils.git] / git-bare
blobb9ca2c2e19bfd621516613320396c2599d68ecc9
1 #!/usr/bin/env bash
3 #=======================================================================
4 # git-bare
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 #=======================================================================
10 mode=$1
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
20 else
21 echo 'Syntax: git-bare [yes|no]'