{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/1663","repository_url":"https://api.github.com/repos/git-for-windows/git","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/1663/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/1663/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/1663/events","html_url":"https://github.com/git-for-windows/git/issues/1663","id":321008445,"number":1663,"title":"Portable: post-install.bat typo in comments?!","user":{"login":"BurtHarris","id":2715647,"avatar_url":"https://avatars0.githubusercontent.com/u/2715647?v=4","gravatar_id":"","url":"https://api.github.com/users/BurtHarris","html_url":"https://github.com/BurtHarris","followers_url":"https://api.github.com/users/BurtHarris/followers","following_url":"https://api.github.com/users/BurtHarris/following{/other_user}","gists_url":"https://api.github.com/users/BurtHarris/gists{/gist_id}","starred_url":"https://api.github.com/users/BurtHarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurtHarris/subscriptions","organizations_url":"https://api.github.com/users/BurtHarris/orgs","repos_url":"https://api.github.com/users/BurtHarris/repos","events_url":"https://api.github.com/users/BurtHarris/events{/privacy}","received_events_url":"https://api.github.com/users/BurtHarris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-08T01:04:37Z","updated_at":"2018-05-16T08:49:07Z","closed_at":"2018-05-15T09:46:40Z","author_association":"NONE","body":" - [ x] I was not able to find an [open](https://github.com/git-for-windows/git/issues?q=is%3Aopen) or [closed](https://github.com/git-for-windows/git/issues?q=is%3Aclosed) issue matching what I'm seeing\r\n\r\n### Setup\r\n\r\n - Which version of Git for Windows are you using? Is it 32-bit or 64-bit?\r\n\r\n```\r\n$ git --version --build-options\r\n\r\ngit version 2.17.0.windows.1\r\ncpu: x86_64\r\nbuilt from commit: e7621d891d081acff6acd1f0ba6ae0adce06dd09\r\nsizeof-long: 4\r\n```\r\n\r\n - Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?\r\n\r\n```\r\n$ cmd.exe /c ver\r\n\r\nMicrosoft Windows [Version 10.0.17134.1]\r\n```\r\n\r\n - What options did you set as part of the installation? Or did you choose the\r\n   defaults?\r\n\r\nI installed the **portable version** into directory C:\\Wham\r\n\r\n - Any other interesting things about your environment that might be related\r\n   to the issue you're seeing?\r\n\r\nC:\\Wham\\bin is already on the path.\r\n\r\n### Details\r\n\r\n - Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other\r\n\r\n**CMD.exe**\r\n\r\n - What commands did you run to trigger this issue? If you can provide a\r\n   [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve)\r\n   this will help us understand the issue.\r\n\r\n```\r\ngit-bash.exe --no-needs-console --hide --no-cd --command=post-install.cmd\r\n```\r\n\r\n - What actually happened instead?\r\n\r\nAfter installing portable version, I had a look at the file named **post-install.bat**.\r\n\r\nIt had a rather confusing set of instructions, saying:\r\n\r\n```\r\n@REM If run manually, it should be run via\r\n@REM   git-bash.exe --no-needs-console --hide --no-cd --command=post-install.cmd\r\n@REM to hide the console.\r\n```\r\n\r\n1.  The file extension of this script is **.bat**, not **.cmd**, so instructions seem wrong.\r\n2.  It is unclear to me why I would run that from git-bash.exe\r\n3.  Hiding the console leaves much to be desired...\r\n4.  Following the instructions literally only seemed to touch etc/rebase.db.x86_64\r\n\r\nRunning post-install.bat manually (from CMD.exe) seems to have done mostly the right thing, saying:\r\n\r\n```\r\nC:\\Wham>post-install.bat\r\n\"running post-install\"\r\n'C:\\WINDOWS\\system32\\drivers\\etc\\hosts' -> '/etc/hosts'\r\n'C:\\WINDOWS\\system32\\drivers\\etc\\protocol' -> '/etc/protocols'\r\n'C:\\WINDOWS\\system32\\drivers\\etc\\services' -> '/etc/services'\r\n'C:\\WINDOWS\\system32\\drivers\\etc\\networks' -> '/etc/networks'\r\nThe batch file cannot be found.\r\n```\r\n\r\nI think the *The batch file cannot be found.* message is due to the script deleting itself.   That seems unnecessary.\r\n"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/389444354","html_url":"https://github.com/git-for-windows/git/issues/1663#issuecomment-389444354","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/1663","id":389444354,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars0.githubusercontent.com/u/127790?v=4","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T08:49:07Z","updated_at":"2018-05-16T08:49:07Z","author_association":"MEMBER","body":"@BurtHarris have you noticed that I closed it via a commit?"}}
{"actor":{"display_login":"dscho"}}