{"action":"closed","issue":{"url":"https://api.github.com/repos/magit/magit/issues/2443","labels_url":"https://api.github.com/repos/magit/magit/issues/2443/labels{/name}","comments_url":"https://api.github.com/repos/magit/magit/issues/2443/comments","events_url":"https://api.github.com/repos/magit/magit/issues/2443/events","html_url":"https://github.com/magit/magit/issues/2443","id":122762664,"number":2443,"title":"Set-upstream is broken / useless","user":{"login":"least-olegs","id":16243408,"avatar_url":"https://avatars.githubusercontent.com/u/16243408?v=3","gravatar_id":"","url":"https://api.github.com/users/least-olegs","html_url":"https://github.com/least-olegs","followers_url":"https://api.github.com/users/least-olegs/followers","following_url":"https://api.github.com/users/least-olegs/following{/other_user}","gists_url":"https://api.github.com/users/least-olegs/gists{/gist_id}","starred_url":"https://api.github.com/users/least-olegs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/least-olegs/subscriptions","organizations_url":"https://api.github.com/users/least-olegs/orgs","repos_url":"https://api.github.com/users/least-olegs/repos","events_url":"https://api.github.com/users/least-olegs/events{/privacy}","received_events_url":"https://api.github.com/users/least-olegs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magit/magit/labels/invalid","name":"invalid","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T15:52:01Z","updated_at":"2015-12-17T18:12:40Z","closed_at":"2015-12-17T18:12:40Z","body":"When I specify `-u` in push dialog the command generated is both absurd and harmful:\r\n\r\n```\r\ngit … push -v --set-upstream origin :\r\n```\r\n\r\nThis will cause **all** local branches to be pushed to whatever they are tracking... Definitely, what you expect is that only the current branch will be pushed with `-u` option.\r\n\r\nI've already seen this: #2441 and related tickets, and... sorry, you broke something that didn't need fixing. It's really easier now to just type the Git command than jump through the Magit hoops to get things done."}}