Skip to contentSkip to conversation

Use core.sharedrepository consistently.

PATCH In review Fernando J. Pereda 2 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use core.sharedrepository consistently.

'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'.

---

 Documentation/git-init-db.txt |    2 +-
 init-db.c                     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

531df8e5c78ca67746b7a651ac4486eae8b114c6

Documentation/git-init-db.txt +1 -1
index ea4d849..2d818d6 100644
@@ -34,7 +34,7 @@ environment variable then the sha1 direc
 otherwise the default `$GIT_DIR/objects` directory is used.
 
 A shared repository allows users belonging to the same group to push into that
-repository. When specifying `--shared` the config variable "core.sharedRepository" 
+repository. When specifying `--shared` the config variable "core.sharedrepository"
 is set to 'true' so that directories under `$GIT_DIR` are made group writable
 (and g+sx, since the git group may be not the primary group of all users).
 
init-db.c +1 -1
index ff29496..e77a749 100644
@@ -285,7 +285,7 @@ int main(int argc, char **argv)
 	safe_create_dir(path, 1);
 
 	if (shared_repository)
-		git_config_set("core.sharedRepository", "true");
+		git_config_set("core.sharedrepository", "true");
 
 	return 0;
 }
Signature · 1 line
1.2.4
#1 lore raw
Quoted 1 line · Fernando J. Pereda

[snip]

Nevermind that one... I screwed almost every possible header in my mail. Sorry.

Signature · 3 lines
Fernando J. Pereda Garcimartín
Gentoo Developer (Alpha,net-mail,mutt,git)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4
#2 lore raw
In reply to Fernando J. Pereda
Quoted 3 lines · Fernando J. Pereda

'git init-db --shared' sets 'core.sharedRepository' but in setup.c 'core.sharedrepository' is checked instead.

It really shouldn't matter.

Case in a git config option name is always converted to lower case when the config file is read, exactly so that you can use mixed case without the actual readers caring. Lots of people prefer mixed-case for human-readable info, ie

	[Core]
		Name=Linus Torvalds

will actually generate

core.name=Linus Torvalds

as the config variable.

So the code should have worked fine. Unless there is some bug somewhere.

Linus