{"action":"created","issue":{"url":"https://api.github.com/repos/rock-core/autoproj/issues/36","labels_url":"https://api.github.com/repos/rock-core/autoproj/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/rock-core/autoproj/issues/36/comments","events_url":"https://api.github.com/repos/rock-core/autoproj/issues/36/events","html_url":"https://github.com/rock-core/autoproj/issues/36","id":55380750,"number":36,"title":"Only tag or commit is captured, but not branch and remote","user":{"login":"jakobs","id":160834,"avatar_url":"https://avatars.githubusercontent.com/u/160834?v=3","gravatar_id":"","url":"https://api.github.com/users/jakobs","html_url":"https://github.com/jakobs","followers_url":"https://api.github.com/users/jakobs/followers","following_url":"https://api.github.com/users/jakobs/following{/other_user}","gists_url":"https://api.github.com/users/jakobs/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobs/subscriptions","organizations_url":"https://api.github.com/users/jakobs/orgs","repos_url":"https://api.github.com/users/jakobs/repos","events_url":"https://api.github.com/users/jakobs/events{/privacy}","received_events_url":"https://api.github.com/users/jakobs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rock-core/autoproj/labels/versioning","name":"versioning","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-24T18:50:36Z","updated_at":"2015-02-12T13:01:35Z","closed_at":null,"body":"If the repository is on another branch, this is not captured in the versioning, and so is not the remote. This leads to problems when doing an autoproj update, because \r\na) if the commit is available, but on another branch, autoproj refuses to switch\r\nb) the commit might be on another remote\r\n\r\nb happens quite regularly, when cloning a repo and adding local changes.\r\n\r\nThis is related to #40. The problem is that we can't rely on a branch name to persist. E.g. feature gets added on a branch. This is pinned. Branch is merged to main, and removed. \r\n\r\nMight be this would be the way forward:\r\n* autoproj commit \r\n - captures tag/commitid. \r\n - Has to look which remote that tag it is available in. Override remote when not on default remote.\r\n - does not capture branch name\r\n* autoproj update\r\n - updates remotes\r\n - needs to be more lenient with switching branches. E.g. the check in #40 needs to be fixed. \r\n - if commit is not on current branch, switch to branch which has that commit\r\n - if multiple branches have that commit... well then... we're screwed. But I guess just picking one and warning should be ok."},"comment":{"url":"https://api.github.com/repos/rock-core/autoproj/issues/comments/74066714","html_url":"https://github.com/rock-core/autoproj/issues/36#issuecomment-74066714","issue_url":"https://api.github.com/repos/rock-core/autoproj/issues/36","id":74066714,"user":{"login":"doudou","id":292,"avatar_url":"https://avatars.githubusercontent.com/u/292?v=3","gravatar_id":"","url":"https://api.github.com/users/doudou","html_url":"https://github.com/doudou","followers_url":"https://api.github.com/users/doudou/followers","following_url":"https://api.github.com/users/doudou/following{/other_user}","gists_url":"https://api.github.com/users/doudou/gists{/gist_id}","starred_url":"https://api.github.com/users/doudou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doudou/subscriptions","organizations_url":"https://api.github.com/users/doudou/orgs","repos_url":"https://api.github.com/users/doudou/repos","events_url":"https://api.github.com/users/doudou/events{/privacy}","received_events_url":"https://api.github.com/users/doudou/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T13:01:35Z","updated_at":"2015-02-12T13:01:35Z","body":"Nope. Needs testing."}}