{"action":"opened","number":1448,"pull_request":{"url":"https://api.github.com/repos/middleman/middleman/pulls/1448","id":29184121,"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","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1448","number":1448,"state":"open","locked":false,"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},"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```","created_at":"2015-02-12T14:45:13Z","updated_at":"2015-02-12T14:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/middleman/middleman/pulls/1448/commits","review_comments_url":"https://api.github.com/repos/middleman/middleman/pulls/1448/comments","review_comment_url":"https://api.github.com/repos/middleman/middleman/pulls/comments/{number}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1448/comments","statuses_url":"https://api.github.com/repos/middleman/middleman/statuses/640c87c13a4322aae55f674a51bfbcb8e901bcd3","head":{"label":"alex88:feature/git-url-template","ref":"feature/git-url-template","sha":"640c87c13a4322aae55f674a51bfbcb8e901bcd3","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},"repo":{"id":30618007,"name":"middleman","full_name":"alex88/middleman","owner":{"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},"private":false,"html_url":"https://github.com/alex88/middleman","description":"Hand-crafted frontend development","fork":true,"url":"https://api.github.com/repos/alex88/middleman","forks_url":"https://api.github.com/repos/alex88/middleman/forks","keys_url":"https://api.github.com/repos/alex88/middleman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex88/middleman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex88/middleman/teams","hooks_url":"https://api.github.com/repos/alex88/middleman/hooks","issue_events_url":"https://api.github.com/repos/alex88/middleman/issues/events{/number}","events_url":"https://api.github.com/repos/alex88/middleman/events","assignees_url":"https://api.github.com/repos/alex88/middleman/assignees{/user}","branches_url":"https://api.github.com/repos/alex88/middleman/branches{/branch}","tags_url":"https://api.github.com/repos/alex88/middleman/tags","blobs_url":"https://api.github.com/repos/alex88/middleman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex88/middleman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex88/middleman/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex88/middleman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex88/middleman/statuses/{sha}","languages_url":"https://api.github.com/repos/alex88/middleman/languages","stargazers_url":"https://api.github.com/repos/alex88/middleman/stargazers","contributors_url":"https://api.github.com/repos/alex88/middleman/contributors","subscribers_url":"https://api.github.com/repos/alex88/middleman/subscribers","subscription_url":"https://api.github.com/repos/alex88/middleman/subscription","commits_url":"https://api.github.com/repos/alex88/middleman/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex88/middleman/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex88/middleman/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex88/middleman/issues/comments/{number}","contents_url":"https://api.github.com/repos/alex88/middleman/contents/{+path}","compare_url":"https://api.github.com/repos/alex88/middleman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex88/middleman/merges","archive_url":"https://api.github.com/repos/alex88/middleman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex88/middleman/downloads","issues_url":"https://api.github.com/repos/alex88/middleman/issues{/number}","pulls_url":"https://api.github.com/repos/alex88/middleman/pulls{/number}","milestones_url":"https://api.github.com/repos/alex88/middleman/milestones{/number}","notifications_url":"https://api.github.com/repos/alex88/middleman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex88/middleman/labels{/name}","releases_url":"https://api.github.com/repos/alex88/middleman/releases{/id}","created_at":"2015-02-10T22:29:06Z","updated_at":"2015-02-10T22:29:09Z","pushed_at":"2015-02-12T14:40:57Z","git_url":"git://github.com/alex88/middleman.git","ssh_url":"git@github.com:alex88/middleman.git","clone_url":"https://github.com/alex88/middleman.git","svn_url":"https://github.com/alex88/middleman","homepage":"https://middlemanapp.com","size":20982,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"v3-stable"}},"base":{"label":"middleman:master","ref":"master","sha":"986b9fcf5151fb27f4dc45278a92b49afcf2a698","user":{"login":"middleman","id":1280820,"avatar_url":"https://avatars.githubusercontent.com/u/1280820?v=3","gravatar_id":"","url":"https://api.github.com/users/middleman","html_url":"https://github.com/middleman","followers_url":"https://api.github.com/users/middleman/followers","following_url":"https://api.github.com/users/middleman/following{/other_user}","gists_url":"https://api.github.com/users/middleman/gists{/gist_id}","starred_url":"https://api.github.com/users/middleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/middleman/subscriptions","organizations_url":"https://api.github.com/users/middleman/orgs","repos_url":"https://api.github.com/users/middleman/repos","events_url":"https://api.github.com/users/middleman/events{/privacy}","received_events_url":"https://api.github.com/users/middleman/received_events","type":"Organization","site_admin":false},"repo":{"id":261943,"name":"middleman","full_name":"middleman/middleman","owner":{"login":"middleman","id":1280820,"avatar_url":"https://avatars.githubusercontent.com/u/1280820?v=3","gravatar_id":"","url":"https://api.github.com/users/middleman","html_url":"https://github.com/middleman","followers_url":"https://api.github.com/users/middleman/followers","following_url":"https://api.github.com/users/middleman/following{/other_user}","gists_url":"https://api.github.com/users/middleman/gists{/gist_id}","starred_url":"https://api.github.com/users/middleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/middleman/subscriptions","organizations_url":"https://api.github.com/users/middleman/orgs","repos_url":"https://api.github.com/users/middleman/repos","events_url":"https://api.github.com/users/middleman/events{/privacy}","received_events_url":"https://api.github.com/users/middleman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/middleman/middleman","description":"Hand-crafted frontend development","fork":false,"url":"https://api.github.com/repos/middleman/middleman","forks_url":"https://api.github.com/repos/middleman/middleman/forks","keys_url":"https://api.github.com/repos/middleman/middleman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/middleman/middleman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/middleman/middleman/teams","hooks_url":"https://api.github.com/repos/middleman/middleman/hooks","issue_events_url":"https://api.github.com/repos/middleman/middleman/issues/events{/number}","events_url":"https://api.github.com/repos/middleman/middleman/events","assignees_url":"https://api.github.com/repos/middleman/middleman/assignees{/user}","branches_url":"https://api.github.com/repos/middleman/middleman/branches{/branch}","tags_url":"https://api.github.com/repos/middleman/middleman/tags","blobs_url":"https://api.github.com/repos/middleman/middleman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/middleman/middleman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/middleman/middleman/git/refs{/sha}","trees_url":"https://api.github.com/repos/middleman/middleman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/middleman/middleman/statuses/{sha}","languages_url":"https://api.github.com/repos/middleman/middleman/languages","stargazers_url":"https://api.github.com/repos/middleman/middleman/stargazers","contributors_url":"https://api.github.com/repos/middleman/middleman/contributors","subscribers_url":"https://api.github.com/repos/middleman/middleman/subscribers","subscription_url":"https://api.github.com/repos/middleman/middleman/subscription","commits_url":"https://api.github.com/repos/middleman/middleman/commits{/sha}","git_commits_url":"https://api.github.com/repos/middleman/middleman/git/commits{/sha}","comments_url":"https://api.github.com/repos/middleman/middleman/comments{/number}","issue_comment_url":"https://api.github.com/repos/middleman/middleman/issues/comments/{number}","contents_url":"https://api.github.com/repos/middleman/middleman/contents/{+path}","compare_url":"https://api.github.com/repos/middleman/middleman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/middleman/middleman/merges","archive_url":"https://api.github.com/repos/middleman/middleman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/middleman/middleman/downloads","issues_url":"https://api.github.com/repos/middleman/middleman/issues{/number}","pulls_url":"https://api.github.com/repos/middleman/middleman/pulls{/number}","milestones_url":"https://api.github.com/repos/middleman/middleman/milestones{/number}","notifications_url":"https://api.github.com/repos/middleman/middleman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/middleman/middleman/labels{/name}","releases_url":"https://api.github.com/repos/middleman/middleman/releases{/id}","created_at":"2009-07-27T21:41:11Z","updated_at":"2015-02-12T06:19:20Z","pushed_at":"2015-02-10T22:02:48Z","git_url":"git://github.com/middleman/middleman.git","ssh_url":"git@github.com:middleman/middleman.git","clone_url":"https://github.com/middleman/middleman.git","svn_url":"https://github.com/middleman/middleman","homepage":"https://middlemanapp.com","size":41276,"stargazers_count":3856,"watchers_count":3856,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":380,"mirror_url":null,"open_issues_count":55,"forks":380,"open_issues":55,"watchers":3856,"default_branch":"v3-stable"}},"_links":{"self":{"href":"https://api.github.com/repos/middleman/middleman/pulls/1448"},"html":{"href":"https://github.com/middleman/middleman/pull/1448"},"issue":{"href":"https://api.github.com/repos/middleman/middleman/issues/1448"},"comments":{"href":"https://api.github.com/repos/middleman/middleman/issues/1448/comments"},"review_comments":{"href":"https://api.github.com/repos/middleman/middleman/pulls/1448/comments"},"review_comment":{"href":"https://api.github.com/repos/middleman/middleman/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/middleman/middleman/pulls/1448/commits"},"statuses":{"href":"https://api.github.com/repos/middleman/middleman/statuses/640c87c13a4322aae55f674a51bfbcb8e901bcd3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":3,"changed_files":1}}