{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/1448","labels_url":"https://api.github.com/repos/middleman/middleman/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1448/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/1448/events","html_url":"https://github.com/middleman/middleman/pull/1448","id":57468778,"number":1448,"title":"Clone template from full repository urls","user":{"login":"alex88","id":436888,"avatar_url":"https://avatars.githubusercontent.com/u/436888?v=3","gravatar_id":"","url":"https://api.github.com/users/alex88","html_url":"https://github.com/alex88","followers_url":"https://api.github.com/users/alex88/followers","following_url":"https://api.github.com/users/alex88/following{/other_user}","gists_url":"https://api.github.com/users/alex88/gists{/gist_id}","starred_url":"https://api.github.com/users/alex88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex88/subscriptions","organizations_url":"https://api.github.com/users/alex88/orgs","repos_url":"https://api.github.com/users/alex88/repos","events_url":"https://api.github.com/users/alex88/events{/privacy}","received_events_url":"https://api.github.com/users/alex88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T14:45:13Z","updated_at":"2015-02-12T14:58:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/middleman/middleman/pulls/1448","html_url":"https://github.com/middleman/middleman/pull/1448","diff_url":"https://github.com/middleman/middleman/pull/1448.diff","patch_url":"https://github.com/middleman/middleman/pull/1448.patch"},"body":"In the guide https://middlemanapp.com/basics/upgrade-v4/ it says urls without `://` are supposed to be on github, however passing the full repository url doesn't work.\r\n\r\n```\r\n$ middleman init -T https://github.com/middleman/middleman-templates-default.git\r\nTemplate `https://github.com/middleman/middleman-templates-default.git` not found in Middleman Directory.\r\nDid you mean to use a full `user/repo` path?\r\n```\r\n\r\nI've added a way to use both middleman directory, github user/repo syntax and full clone urls (with the :// check as the guide) so all of them works.\r\n\r\n```\r\nmiddleman init -T middleman/middleman-templates-default\r\n         run  git clone --depth 1 git://github.com/middleman/middleman-templates-default.git /var/folders/dg/2k1h_3dd44b19cqk00dvs70c0000gn/T/d20150212-13109-1wnvvo2 from \".\"\r\nCloning into '/var/folders/dg/2k1h_3dd44b19cqk00dvs70c0000gn/T/d20150212-13109-1wnvvo2'...\r\nremote: Counting objects: 22, done.\r\nremote: Compressing objects: 100% (15/15), done.\r\n....\r\n\r\nmiddleman init -T https://github.com/middleman/middleman-templates-default.git\r\n         run  git clone --depth 1 https://github.com/middleman/middleman-templates-default.git /var/folders/dg/2k1h_3dd44b19cqk00dvs70c0000gn/T/d20150212-13153-15zhooz from \".\"\r\nCloning into '/var/folders/dg/2k1h_3dd44b19cqk00dvs70c0000gn/T/d20150212-13153-15zhooz'...\r\nremote: Counting objects: 22, done.\r\nremote: Compressing objects: 100% (15/15), done.\r\n....\r\n```\r\n\r\nin this way even people using bitbucket (like us) can use their templates."},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/74083908","html_url":"https://github.com/middleman/middleman/pull/1448#issuecomment-74083908","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1448","id":74083908,"user":{"login":"alex88","id":436888,"avatar_url":"https://avatars.githubusercontent.com/u/436888?v=3","gravatar_id":"","url":"https://api.github.com/users/alex88","html_url":"https://github.com/alex88","followers_url":"https://api.github.com/users/alex88/followers","following_url":"https://api.github.com/users/alex88/following{/other_user}","gists_url":"https://api.github.com/users/alex88/gists{/gist_id}","starred_url":"https://api.github.com/users/alex88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex88/subscriptions","organizations_url":"https://api.github.com/users/alex88/orgs","repos_url":"https://api.github.com/users/alex88/repos","events_url":"https://api.github.com/users/alex88/events{/privacy}","received_events_url":"https://api.github.com/users/alex88/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T14:58:07Z","updated_at":"2015-02-12T14:58:07Z","body":"Maybe I can also add the ability to use local filesystem as template source to make easier developing the template"}}