{"action":"closed","issue":{"url":"https://api.github.com/repos/git/git-scm.com/issues/835","repository_url":"https://api.github.com/repos/git/git-scm.com","labels_url":"https://api.github.com/repos/git/git-scm.com/issues/835/labels{/name}","comments_url":"https://api.github.com/repos/git/git-scm.com/issues/835/comments","events_url":"https://api.github.com/repos/git/git-scm.com/issues/835/events","html_url":"https://github.com/git/git-scm.com/issues/835","id":174339090,"number":835,"title":"Cannot set `git config --global` settings in chrooted environment, because of `.gitconfig.lock` permissions","user":{"login":"arnisjuraga","id":2185289,"avatar_url":"https://avatars.githubusercontent.com/u/2185289?v=3","gravatar_id":"","url":"https://api.github.com/users/arnisjuraga","html_url":"https://github.com/arnisjuraga","followers_url":"https://api.github.com/users/arnisjuraga/followers","following_url":"https://api.github.com/users/arnisjuraga/following{/other_user}","gists_url":"https://api.github.com/users/arnisjuraga/gists{/gist_id}","starred_url":"https://api.github.com/users/arnisjuraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnisjuraga/subscriptions","organizations_url":"https://api.github.com/users/arnisjuraga/orgs","repos_url":"https://api.github.com/users/arnisjuraga/repos","events_url":"https://api.github.com/users/arnisjuraga/events{/privacy}","received_events_url":"https://api.github.com/users/arnisjuraga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T18:03:24Z","updated_at":"2016-09-07T06:01:17Z","closed_at":"2016-09-07T06:01:17Z","body":"The scenario is not so common, but I have searched and noticed few users having similar issue.\r\n\r\nIf user Home directory is, e.g.:\r\n`/home/users/developer`\r\nand this directory is owned by `root:root`, and only sub-directories are user-writable, then calling \r\n\r\n`git config --global user.name \"User Name\"`\r\n\r\nwill generate an error:\r\n\r\n`error: could not lock config file /home/users/developer/.gitconfig: Permission denied`\r\n\r\nOf course, I can create that file with root, set permissions to `developer`, however - the command anyway will not be executed successfully, because `git` needs to create a `~/.gitconfig.lock` file, which is not possible because `~` directory is not writable by the user.\r\n\r\nIs it possible to search for sub-folder by default, writable by user, e.g. `~/.git` ?\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"peff"}}