{"action":"closed","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/121","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/121/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/121/events","html_url":"https://github.com/git-for-windows/git/issues/121","id":71798447,"number":121,"title":"installer: respect systemwide config `%PROGRAMDATA%\\Git\\config`","user":{"login":"nalla","id":688191,"avatar_url":"https://avatars.githubusercontent.com/u/688191?v=3","gravatar_id":"","url":"https://api.github.com/users/nalla","html_url":"https://github.com/nalla","followers_url":"https://api.github.com/users/nalla/followers","following_url":"https://api.github.com/users/nalla/following{/other_user}","gists_url":"https://api.github.com/users/nalla/gists{/gist_id}","starred_url":"https://api.github.com/users/nalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalla/subscriptions","organizations_url":"https://api.github.com/users/nalla/orgs","repos_url":"https://api.github.com/users/nalla/repos","events_url":"https://api.github.com/users/nalla/events{/privacy}","received_events_url":"https://api.github.com/users/nalla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-29T07:14:19Z","updated_at":"2015-04-30T06:37:52Z","closed_at":"2015-04-30T06:37:52Z","body":"Probably [install.iss.in#L1117](https://github.com/git-for-windows/build-extra/blob/master/installer/install.iss.in#L1117) and [install.iss.in#L1133](https://github.com/git-for-windows/build-extra/blob/master/installer/install.iss.in#L1133) have to be adjusted.\r\n\r\nAlso `mingw[32|64]/etc/gitconfig` should not be installed into the `AppDir` by the installer. Instead it should be *merged* with a possible `%PROGRAMDATA%\\Git\\config`.\r\n\r\nI would propose the following mechanism to be ran by the installer code before tampering the file with the user choices.\r\n\r\n```\r\nif not exists %PROGRAMDATA%\\Git\\config\r\n  move mingw[32|64]/etc/gitconfig %PROGRAMDATA%\\Git\\config\r\ndelete mingw[32|64]/etc/gitconfig\r\n```\r\n"}}