{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/18020","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/18020/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/18020/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/18020/events","html_url":"https://github.com/facebook/react-native/issues/18020","id":298329349,"node_id":"MDU6SXNzdWUyOTgzMjkzNDk=","number":18020,"title":"git-upgrade fails if email is not set global for git","user":{"login":"voxspox","id":1503565,"node_id":"MDQ6VXNlcjE1MDM1NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1503565?v=4","gravatar_id":"","url":"https://api.github.com/users/voxspox","html_url":"https://github.com/voxspox","followers_url":"https://api.github.com/users/voxspox/followers","following_url":"https://api.github.com/users/voxspox/following{/other_user}","gists_url":"https://api.github.com/users/voxspox/gists{/gist_id}","starred_url":"https://api.github.com/users/voxspox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxspox/subscriptions","organizations_url":"https://api.github.com/users/voxspox/orgs","repos_url":"https://api.github.com/users/voxspox/repos","events_url":"https://api.github.com/users/voxspox/events{/privacy}","received_events_url":"https://api.github.com/users/voxspox/received_events","type":"User","site_admin":false},"labels":[{"id":857091288,"node_id":"MDU6TGFiZWw4NTcwOTEyODg=","url":"https://api.github.com/repos/facebook/react-native/labels/:computer:CLI","name":":computer:CLI","color":"fef2c0","default":false},{"id":718241807,"node_id":"MDU6TGFiZWw3MTgyNDE4MDc=","url":"https://api.github.com/repos/facebook/react-native/labels/Stale","name":"Stale","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-19T16:10:06Z","updated_at":"2018-09-18T18:27:00Z","closed_at":null,"author_association":"NONE","body":"### Is this a bug report?\r\n\r\nyes\r\n\r\n### Have you read the [Contributing Guidelines](https://facebook.github.io/react-native/docs/contributing.html)?\r\n\r\nno\r\n\r\n### Environment\r\n\r\nEnvironment:\r\n  OS: Linux 4.13\r\n  Node: 9.5.0\r\n  Yarn: Not Found\r\n  npm: 5.6.0\r\n  Watchman: Not Found\r\n  Xcode: N/A\r\n  Android Studio: 3.0 AI-171.4443003\r\n\r\nPackages: (wanted => installed)\r\n  react: ^16.2.0 => 16.2.0\r\n  react-native: ^0.53.2 => 0.53.2\r\n\r\n### Steps to Reproduce\r\n\r\n1. Do not setup your email for git globally\r\n2. But do setup your git email for the local project\r\n3. run react-native-git-upgrade\r\n\r\n### Expected Behavior\r\n\r\nno errors\r\n\r\n### Actual Behavior\r\n\r\n    $ git commit -m \"Project snapshot\"\r\n    On branch master\r\n    nothing to commit, working directory clean\r\n    $ react-native-git-upgrade \r\n    git-upgrade info Check for updates \r\n    ...\r\n    git-upgrade info Add all files to commit \r\n    git-upgrade info Commit current project sources \r\n    \r\n    *** Please tell me who you are.\r\n    Run\r\n    git config --global user.email \"you@example.com\"\r\n    git config --global user.name \"Your Name\"\r\n    \r\n    to set your account's default identity.\r\n    Omit --global to set the identity only in this repository.\r\n    \r\n    fatal: unable to auto-detect email address (got 'locus@cobalt.(none)')\r\n    git-upgrade ERR! An error occurred during upgrade: \r\n    git-upgrade ERR! Error: Command 'git commit -m \"Project snapshot\"' exited with code 128:\r\n    stderr: undefined\r\n    ...\r\n\r\nIf I setup my email per `git config --global user.email ...` there are no errors.\r\n\r\nIt seems that `git` runs within `react-native-git-upgrade` differently compared to in the shell. "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/422498602","html_url":"https://github.com/facebook/react-native/issues/18020#issuecomment-422498602","issue_url":"https://api.github.com/repos/facebook/react-native/issues/18020","id":422498602,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjQ5ODYwMg==","user":{"login":"voxspox","id":1503565,"node_id":"MDQ6VXNlcjE1MDM1NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1503565?v=4","gravatar_id":"","url":"https://api.github.com/users/voxspox","html_url":"https://github.com/voxspox","followers_url":"https://api.github.com/users/voxspox/followers","following_url":"https://api.github.com/users/voxspox/following{/other_user}","gists_url":"https://api.github.com/users/voxspox/gists{/gist_id}","starred_url":"https://api.github.com/users/voxspox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxspox/subscriptions","organizations_url":"https://api.github.com/users/voxspox/orgs","repos_url":"https://api.github.com/users/voxspox/repos","events_url":"https://api.github.com/users/voxspox/events{/privacy}","received_events_url":"https://api.github.com/users/voxspox/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T18:27:00Z","updated_at":"2018-09-18T18:27:00Z","author_association":"NONE","body":"This is still an issue"}}
{"actor":{"display_login":"voxspox"}}