{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/6453","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/6453/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/6453/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/6453/events","html_url":"https://github.com/bundler/bundler/issues/6453","id":308007796,"number":6453,"title":"`bundle version` v1.16.1 prints strange \"fatal: Not a git repository ...' message","user":{"login":"907th","id":800362,"avatar_url":"https://avatars3.githubusercontent.com/u/800362?v=4","gravatar_id":"","url":"https://api.github.com/users/907th","html_url":"https://github.com/907th","followers_url":"https://api.github.com/users/907th/followers","following_url":"https://api.github.com/users/907th/following{/other_user}","gists_url":"https://api.github.com/users/907th/gists{/gist_id}","starred_url":"https://api.github.com/users/907th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/907th/subscriptions","organizations_url":"https://api.github.com/users/907th/orgs","repos_url":"https://api.github.com/users/907th/repos","events_url":"https://api.github.com/users/907th/events{/privacy}","received_events_url":"https://api.github.com/users/907th/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T12:16:28Z","updated_at":"2018-03-23T12:54:54Z","closed_at":null,"author_association":"NONE","body":"I see strange 'Not a git repo' messages when running `bundle version` command. All other commands (e.g. `bundle install`) do not print this message.\r\n\r\nTerminal session:\r\n```\r\n$ \\bundle version\r\nfatal: Not a git repository (or any of the parent directories): .git\r\nBundler version 1.16.1 (2018-03-23 commit )\r\n$ \\bundle install\r\nUsing rake 12.3.1\r\nUsing concurrent-ruby 1.0.5\r\nUsing i18n 0.9.5\r\n... omitted\r\n$ which bundle\r\n/Users/laise/.rvm/gems/ruby-2.5.0@my-project/bin/bundle\r\n```\r\n\r\nRVM: rvm 1.29.3 (master)\r\nRuby: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/375656072","html_url":"https://github.com/bundler/bundler/issues/6453#issuecomment-375656072","issue_url":"https://api.github.com/repos/bundler/bundler/issues/6453","id":375656072,"user":{"login":"907th","id":800362,"avatar_url":"https://avatars3.githubusercontent.com/u/800362?v=4","gravatar_id":"","url":"https://api.github.com/users/907th","html_url":"https://github.com/907th","followers_url":"https://api.github.com/users/907th/followers","following_url":"https://api.github.com/users/907th/following{/other_user}","gists_url":"https://api.github.com/users/907th/gists{/gist_id}","starred_url":"https://api.github.com/users/907th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/907th/subscriptions","organizations_url":"https://api.github.com/users/907th/orgs","repos_url":"https://api.github.com/users/907th/repos","events_url":"https://api.github.com/users/907th/events{/privacy}","received_events_url":"https://api.github.com/users/907th/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T12:54:54Z","updated_at":"2018-03-23T12:54:54Z","author_association":"NONE","body":"The source of the problem is [this line](https://github.com/bundler/bundler/blob/master/lib/bundler/cli.rb#L464) which calls `BuildMetadata.git_commit_sha`. But the gem folder has no `.git` dir."}}
{"actor":{"display_login":"907th"}}