From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fernando J. Pereda" Subject: [PATCH] Use core.sharedrepository consistently. Date: Sat, 4 Mar 2006 23:51:25 +0100 Message-ID: <20060304225125.GB8891@ferdyx.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jq0ap7NbKX2Kqbes" X-From: git-owner@vger.kernel.org Sat Mar 04 23:52:47 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFfcA-0008Af-7B for gcvg-git@gmane.org; Sat, 04 Mar 2006 23:52:42 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932288AbWCDWvc (ORCPT ); Sat, 4 Mar 2006 17:51:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932293AbWCDWvc (ORCPT ); Sat, 4 Mar 2006 17:51:32 -0500 Received: from 170.Red-213-96-222.staticIP.rima-tde.net ([213.96.222.170]:41144 "EHLO smtp.ferdyx.org") by vger.kernel.org with ESMTP id S932288AbWCDWva (ORCPT ); Sat, 4 Mar 2006 17:51:30 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp.ferdyx.org (Postfix) with ESMTP id 4918C8D323 for ; Sat, 4 Mar 2006 23:48:13 +0100 (CET) Received: from smtp.ferdyx.org ([127.0.0.1]) by localhost (tungsteno [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20293-08 for ; Sat, 4 Mar 2006 23:48:10 +0100 (CET) Received: from posidon.ferdyx.org (posidon.ferdyx.org [192.168.0.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.ferdyx.org (Postfix) with ESMTP id 4F9E38D306 for ; Sat, 4 Mar 2006 23:48:10 +0100 (CET) Received: by posidon.ferdyx.org (nbSMTP-1.01-cvs) for uid 1000 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) ferdy@gentoo.org; Sat, 4 Mar 2006 23:51:26 +0100 (CET) To: git@vger.kernel.org Mail-Followup-To: git@vger.kernel.org Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ferdyx.org Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 'git init-db --shared' sets 'core.sharedRepository' but in setup.c 'core.sharedrepository' is checked instead. This trivial patch makes both init-db.c and its documentation to use 'core.sharedrepository'. Signed-off-by: Fernando J. Pereda --- Documentation/git-init-db.txt | 2 +- init-db.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 531df8e5c78ca67746b7a651ac4486eae8b114c6 diff --git a/Documentation/git-init-db.txt b/Documentation/git-init-db.txt index ea4d849..2d818d6 100644 --- a/Documentation/git-init-db.txt +++ b/Documentation/git-init-db.txt @@ -34,7 +34,7 @@ environment variable then the sha1 direc otherwise the default `$GIT_DIR/objects` directory is used. =20 A shared repository allows users belonging to the same group to push into = that -repository. When specifying `--shared` the config variable "core.sharedRep= ository"=20 +repository. When specifying `--shared` the config variable "core.sharedrep= ository" is set to 'true' so that directories under `$GIT_DIR` are made group writa= ble (and g+sx, since the git group may be not the primary group of all users). =20 diff --git a/init-db.c b/init-db.c index ff29496..e77a749 100644 --- a/init-db.c +++ b/init-db.c @@ -285,7 +285,7 @@ int main(int argc, char **argv) safe_create_dir(path, 1); =20 if (shared_repository) - git_config_set("core.sharedRepository", "true"); + git_config_set("core.sharedrepository", "true"); =20 return 0; } --=20 1.2.4 --jq0ap7NbKX2Kqbes Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEChntCkhbDGC9KNQRArDXAJ9W9CElvHuFuuXm7+riT+IvpMZQvwCghw5q X5Ov+c8UuT6QrP6hd8zUVEE= =O7e2 -----END PGP SIGNATURE----- --jq0ap7NbKX2Kqbes--