{"action":"created","issue":{"url":"https://api.github.com/repos/graalvm/mx/issues/78","repository_url":"https://api.github.com/repos/graalvm/mx","labels_url":"https://api.github.com/repos/graalvm/mx/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/graalvm/mx/issues/78/comments","events_url":"https://api.github.com/repos/graalvm/mx/issues/78/events","html_url":"https://github.com/graalvm/mx/issues/78","id":140150295,"number":78,"title":"sforceimports does not fetch from the repository specified in the suite ","user":{"login":"zapster","id":835883,"avatar_url":"https://avatars.githubusercontent.com/u/835883?v=3","gravatar_id":"","url":"https://api.github.com/users/zapster","html_url":"https://github.com/zapster","followers_url":"https://api.github.com/users/zapster/followers","following_url":"https://api.github.com/users/zapster/following{/other_user}","gists_url":"https://api.github.com/users/zapster/gists{/gist_id}","starred_url":"https://api.github.com/users/zapster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapster/subscriptions","organizations_url":"https://api.github.com/users/zapster/orgs","repos_url":"https://api.github.com/users/zapster/repos","events_url":"https://api.github.com/users/zapster/events{/privacy}","received_events_url":"https://api.github.com/users/zapster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graalvm/mx/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"zapster","id":835883,"avatar_url":"https://avatars.githubusercontent.com/u/835883?v=3","gravatar_id":"","url":"https://api.github.com/users/zapster","html_url":"https://github.com/zapster","followers_url":"https://api.github.com/users/zapster/followers","following_url":"https://api.github.com/users/zapster/following{/other_user}","gists_url":"https://api.github.com/users/zapster/gists{/gist_id}","starred_url":"https://api.github.com/users/zapster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapster/subscriptions","organizations_url":"https://api.github.com/users/zapster/orgs","repos_url":"https://api.github.com/users/zapster/repos","events_url":"https://api.github.com/users/zapster/events{/privacy}","received_events_url":"https://api.github.com/users/zapster/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-03-11T10:37:38Z","updated_at":"2016-03-11T20:27:58Z","closed_at":null,"body":"`mx sforceimport` does not use the location specified in the suites to fetch new revisions but the default remote of the clone. This is for example a problem if one uses a fork as default but the fork does not contain the revision that is requested.\r\n\r\n``` bash\r\n# clone graal-core\r\ngit clone --depth 1 https://github.com/graalvm/graal-core\r\n# clone an old version of truffle from an outdated fork\r\ngit clone --depth 1 https://github.com/zapster/truffle-outdated truffle\r\n# sforceimport graal-core\r\ncd graal-core\r\nmx -y sforceimports\r\n```\r\nresults in:\r\n```\r\nfatal: reference is not a tree: f322868c76f775a399bf96915c95e077c4f2c08c\r\n```\r\n\r\nI think we should per default fetch from the repository specified in the suite and add a flag to disable the behavior for scenarios where we never want to use local mirrors."},"comment":{"url":"https://api.github.com/repos/graalvm/mx/issues/comments/195536682","html_url":"https://github.com/graalvm/mx/issues/78#issuecomment-195536682","issue_url":"https://api.github.com/repos/graalvm/mx/issues/78","id":195536682,"user":{"login":"dougxc","id":5080087,"avatar_url":"https://avatars.githubusercontent.com/u/5080087?v=3","gravatar_id":"","url":"https://api.github.com/users/dougxc","html_url":"https://github.com/dougxc","followers_url":"https://api.github.com/users/dougxc/followers","following_url":"https://api.github.com/users/dougxc/following{/other_user}","gists_url":"https://api.github.com/users/dougxc/gists{/gist_id}","starred_url":"https://api.github.com/users/dougxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougxc/subscriptions","organizations_url":"https://api.github.com/users/dougxc/orgs","repos_url":"https://api.github.com/users/dougxc/repos","events_url":"https://api.github.com/users/dougxc/events{/privacy}","received_events_url":"https://api.github.com/users/dougxc/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T20:27:58Z","updated_at":"2016-03-11T20:27:58Z","body":"Yes."}}