{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2479","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2479/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2479/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2479/events","html_url":"https://github.com/gogits/gogs/issues/2479","id":128600846,"number":2479,"title":"Main branch when migrating repository","user":{"login":"M5oul","id":4758871,"avatar_url":"https://avatars.githubusercontent.com/u/4758871?v=3","gravatar_id":"","url":"https://api.github.com/users/M5oul","html_url":"https://github.com/M5oul","followers_url":"https://api.github.com/users/M5oul/followers","following_url":"https://api.github.com/users/M5oul/following{/other_user}","gists_url":"https://api.github.com/users/M5oul/gists{/gist_id}","starred_url":"https://api.github.com/users/M5oul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M5oul/subscriptions","organizations_url":"https://api.github.com/users/M5oul/orgs","repos_url":"https://api.github.com/users/M5oul/repos","events_url":"https://api.github.com/users/M5oul/events{/privacy}","received_events_url":"https://api.github.com/users/M5oul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T18:04:17Z","updated_at":"2016-01-26T14:28:45Z","closed_at":null,"body":"When migrating a repository, the main branch become the first alphabetically branch. I have just tried it for mirrorring.\r\n\r\nCan we do something to keep main branch from the original repository\r\n\r\nI am using Gogs 0.8.10."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/175043743","html_url":"https://github.com/gogits/gogs/issues/2479#issuecomment-175043743","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2479","id":175043743,"user":{"login":"bkcsoft","id":4726179,"avatar_url":"https://avatars.githubusercontent.com/u/4726179?v=3","gravatar_id":"","url":"https://api.github.com/users/bkcsoft","html_url":"https://github.com/bkcsoft","followers_url":"https://api.github.com/users/bkcsoft/followers","following_url":"https://api.github.com/users/bkcsoft/following{/other_user}","gists_url":"https://api.github.com/users/bkcsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bkcsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkcsoft/subscriptions","organizations_url":"https://api.github.com/users/bkcsoft/orgs","repos_url":"https://api.github.com/users/bkcsoft/repos","events_url":"https://api.github.com/users/bkcsoft/events{/privacy}","received_events_url":"https://api.github.com/users/bkcsoft/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T14:28:45Z","updated_at":"2016-01-26T14:28:45Z","body":"main branch isn't a concept that git understands, so this would have to be fetched from wherever you're migrating from, which isn't' possible with HTTP/HTTPS/GIT-urls :disappointed: "}}