{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/9377","labels_url":"https://api.github.com/repos/golang/go/issues/9377/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/9377/comments","events_url":"https://api.github.com/repos/golang/go/issues/9377/events","html_url":"https://github.com/golang/go/issues/9377","id":52342109,"number":9377,"title":"x/review/git-codereview: doesn't set upstream to origin/master","user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":339,"closed_issues":183,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-08-21T20:53:57Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":7,"created_at":"2014-12-18T09:34:31Z","updated_at":"2015-08-21T22:05:52Z","closed_at":"2015-08-20T09:19:04Z","body":"We need to set upstream to master like below.\r\n\r\n```\r\n$ git checkout -b fix-windows-readlink\r\n$ vim foo.go\r\n$ git change\r\ngit rev-parse --abbrev-ref fix-windows-readlink@{u}\r\nerror: No upstream branch found for 'fix-windows-readlink'\r\nerror: No upstream branch found for 'fix-windows-readlink'\r\nfatal: ambiguous argument 'fix-windows-readlink@{u}': unknown revision or path not in the working tree.\r\nUse '--' to separate paths from revisions\r\nfix-windows-readlink@{u}\r\n```\r\n\r\n```\r\ngit branch --set-upstream fix-windows-readlink origin/master\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/133576734","html_url":"https://github.com/golang/go/issues/9377#issuecomment-133576734","issue_url":"https://api.github.com/repos/golang/go/issues/9377","id":133576734,"user":{"login":"hyangah","id":4999471,"avatar_url":"https://avatars.githubusercontent.com/u/4999471?v=3","gravatar_id":"","url":"https://api.github.com/users/hyangah","html_url":"https://github.com/hyangah","followers_url":"https://api.github.com/users/hyangah/followers","following_url":"https://api.github.com/users/hyangah/following{/other_user}","gists_url":"https://api.github.com/users/hyangah/gists{/gist_id}","starred_url":"https://api.github.com/users/hyangah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyangah/subscriptions","organizations_url":"https://api.github.com/users/hyangah/orgs","repos_url":"https://api.github.com/users/hyangah/repos","events_url":"https://api.github.com/users/hyangah/events{/privacy}","received_events_url":"https://api.github.com/users/hyangah/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T22:05:52Z","updated_at":"2015-08-21T22:05:52Z","body":"Strange that I had to revert cl/13600 to make it work on my windows (Windows7 Professional)\r\n\r\n$ git sync\r\ngit rev-parse --abbrevi-ref 'master@{u}'\r\nfatal: no such branch: ''master'\r\n\r\n$ git --version\r\ngit version 2.5.0.windows.1\r\n"}}