{"action":"created","comment":{"url":"https://api.github.com/repos/galaxyproject/planemo/pulls/comments/29546866","id":29546866,"diff_hunk":"@@ -354,7 +355,8 @@ def _ensure_galaxy_repository_available(ctx):\n         shell(\"git --git-dir %s fetch >/dev/null 2>&1\" % gx_repo)\n     else:\n         remote_repo = \"https://github.com/galaxyproject/galaxy\"\n-        shell(\"git clone --bare %s %s\" % (remote_repo, gx_repo))\n+        command = git.command_clone(ctx, remote_repo, gx_repo, bare=True)\n+        shell(command)","path":"planemo/galaxy_config.py","position":23,"original_position":23,"commit_id":"231afd8d21ad0fc21c48e1b3312b17fe426818dc","original_commit_id":"231afd8d21ad0fc21c48e1b3312b17fe426818dc","user":{"login":"jmchilton","id":216771,"avatar_url":"https://avatars.githubusercontent.com/u/216771?v=3","gravatar_id":"","url":"https://api.github.com/users/jmchilton","html_url":"https://github.com/jmchilton","followers_url":"https://api.github.com/users/jmchilton/followers","following_url":"https://api.github.com/users/jmchilton/following{/other_user}","gists_url":"https://api.github.com/users/jmchilton/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchilton/subscriptions","organizations_url":"https://api.github.com/users/jmchilton/orgs","repos_url":"https://api.github.com/users/jmchilton/repos","events_url":"https://api.github.com/users/jmchilton/events{/privacy}","received_events_url":"https://api.github.com/users/jmchilton/received_events","type":"User","site_admin":false},"body":"So this line is pulling Galaxy down for ``test``/``serve`` when used with ``--install_galaxy`` - which used to use a tar ball by default  but now does a clone so that it can do incremental updates on each call very quickly.\r\n\r\nIt sounds like you mean for the actual shed stuff though - which could be optimized somewhat. I don't think we should just download the tars though because I would like to use the git metadata during upload (#170) and because this will need to support submodules at some point. I do think we could do ``clone`` with ``--depth=1`` probably to speed things up though paired with creating a directory to cache repositories between calls (mirroring how Galaxy is quickly cloned).","created_at":"2015-05-02T11:25:25Z","updated_at":"2015-05-02T11:25:25Z","html_url":"https://github.com/galaxyproject/planemo/pull/174#discussion_r29546866","pull_request_url":"https://api.github.com/repos/galaxyproject/planemo/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/comments/29546866"},"html":{"href":"https://github.com/galaxyproject/planemo/pull/174#discussion_r29546866"},"pull_request":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/galaxyproject/planemo/pulls/174","id":34565275,"html_url":"https://github.com/galaxyproject/planemo/pull/174","diff_url":"https://github.com/galaxyproject/planemo/pull/174.diff","patch_url":"https://github.com/galaxyproject/planemo/pull/174.patch","issue_url":"https://api.github.com/repos/galaxyproject/planemo/issues/174","number":174,"state":"closed","locked":false,"title":"Allow the shed_ operations to consume git URLs instead of paths.","user":{"login":"jmchilton","id":216771,"avatar_url":"https://avatars.githubusercontent.com/u/216771?v=3","gravatar_id":"","url":"https://api.github.com/users/jmchilton","html_url":"https://github.com/jmchilton","followers_url":"https://api.github.com/users/jmchilton/followers","following_url":"https://api.github.com/users/jmchilton/following{/other_user}","gists_url":"https://api.github.com/users/jmchilton/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchilton/subscriptions","organizations_url":"https://api.github.com/users/jmchilton/orgs","repos_url":"https://api.github.com/users/jmchilton/repos","events_url":"https://api.github.com/users/jmchilton/events{/privacy}","received_events_url":"https://api.github.com/users/jmchilton/received_events","type":"User","site_admin":false},"body":"create, upload, download, diff, and lint projects directly from Github - closes #169.\r\n\r\nInputs starting with ``git+`` (e.g. git+/path/to/repo.git) with will have the ``git+`` stripped and passed directly to the ``git`` command-line. Alternatively URLs starting with `git:` will be passed as is to the ``git`` command-line. This seems to roughly correspond to ``pip``.\r\n","created_at":"2015-05-01T20:34:36Z","updated_at":"2015-05-02T11:25:25Z","closed_at":"2015-05-01T21:46:09Z","merged_at":"2015-05-01T21:46:09Z","merge_commit_sha":"577d09d98cc53e07ad0b60d12e70d121c1ae4985","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/galaxyproject/planemo/pulls/174/commits","review_comments_url":"https://api.github.com/repos/galaxyproject/planemo/pulls/174/comments","review_comment_url":"https://api.github.com/repos/galaxyproject/planemo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/galaxyproject/planemo/issues/174/comments","statuses_url":"https://api.github.com/repos/galaxyproject/planemo/statuses/231afd8d21ad0fc21c48e1b3312b17fe426818dc","head":{"label":"jmchilton:git_urls","ref":"git_urls","sha":"231afd8d21ad0fc21c48e1b3312b17fe426818dc","user":{"login":"jmchilton","id":216771,"avatar_url":"https://avatars.githubusercontent.com/u/216771?v=3","gravatar_id":"","url":"https://api.github.com/users/jmchilton","html_url":"https://github.com/jmchilton","followers_url":"https://api.github.com/users/jmchilton/followers","following_url":"https://api.github.com/users/jmchilton/following{/other_user}","gists_url":"https://api.github.com/users/jmchilton/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchilton/subscriptions","organizations_url":"https://api.github.com/users/jmchilton/orgs","repos_url":"https://api.github.com/users/jmchilton/repos","events_url":"https://api.github.com/users/jmchilton/events{/privacy}","received_events_url":"https://api.github.com/users/jmchilton/received_events","type":"User","site_admin":false},"repo":{"id":31855771,"name":"planemo","full_name":"jmchilton/planemo","owner":{"login":"jmchilton","id":216771,"avatar_url":"https://avatars.githubusercontent.com/u/216771?v=3","gravatar_id":"","url":"https://api.github.com/users/jmchilton","html_url":"https://github.com/jmchilton","followers_url":"https://api.github.com/users/jmchilton/followers","following_url":"https://api.github.com/users/jmchilton/following{/other_user}","gists_url":"https://api.github.com/users/jmchilton/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchilton/subscriptions","organizations_url":"https://api.github.com/users/jmchilton/orgs","repos_url":"https://api.github.com/users/jmchilton/repos","events_url":"https://api.github.com/users/jmchilton/events{/privacy}","received_events_url":"https://api.github.com/users/jmchilton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmchilton/planemo","description":"Command-line utilities to assist in developing tools for the Galaxy project.","fork":true,"url":"https://api.github.com/repos/jmchilton/planemo","forks_url":"https://api.github.com/repos/jmchilton/planemo/forks","keys_url":"https://api.github.com/repos/jmchilton/planemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmchilton/planemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmchilton/planemo/teams","hooks_url":"https://api.github.com/repos/jmchilton/planemo/hooks","issue_events_url":"https://api.github.com/repos/jmchilton/planemo/issues/events{/number}","events_url":"https://api.github.com/repos/jmchilton/planemo/events","assignees_url":"https://api.github.com/repos/jmchilton/planemo/assignees{/user}","branches_url":"https://api.github.com/repos/jmchilton/planemo/branches{/branch}","tags_url":"https://api.github.com/repos/jmchilton/planemo/tags","blobs_url":"https://api.github.com/repos/jmchilton/planemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmchilton/planemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmchilton/planemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmchilton/planemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmchilton/planemo/statuses/{sha}","languages_url":"https://api.github.com/repos/jmchilton/planemo/languages","stargazers_url":"https://api.github.com/repos/jmchilton/planemo/stargazers","contributors_url":"https://api.github.com/repos/jmchilton/planemo/contributors","subscribers_url":"https://api.github.com/repos/jmchilton/planemo/subscribers","subscription_url":"https://api.github.com/repos/jmchilton/planemo/subscription","commits_url":"https://api.github.com/repos/jmchilton/planemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmchilton/planemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmchilton/planemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmchilton/planemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmchilton/planemo/contents/{+path}","compare_url":"https://api.github.com/repos/jmchilton/planemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmchilton/planemo/merges","archive_url":"https://api.github.com/repos/jmchilton/planemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmchilton/planemo/downloads","issues_url":"https://api.github.com/repos/jmchilton/planemo/issues{/number}","pulls_url":"https://api.github.com/repos/jmchilton/planemo/pulls{/number}","milestones_url":"https://api.github.com/repos/jmchilton/planemo/milestones{/number}","notifications_url":"https://api.github.com/repos/jmchilton/planemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmchilton/planemo/labels{/name}","releases_url":"https://api.github.com/repos/jmchilton/planemo/releases{/id}","created_at":"2015-03-08T16:01:06Z","updated_at":"2015-05-01T01:39:24Z","pushed_at":"2015-05-01T21:37:30Z","git_url":"git://github.com/jmchilton/planemo.git","ssh_url":"git@github.com:jmchilton/planemo.git","clone_url":"https://github.com/jmchilton/planemo.git","svn_url":"https://github.com/jmchilton/planemo","homepage":"http://galaxyproject.org","size":1509,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"galaxyproject:master","ref":"master","sha":"97ad764b3c986f92b11aea6d02be0f3ede1926f6","user":{"login":"galaxyproject","id":7937847,"avatar_url":"https://avatars.githubusercontent.com/u/7937847?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxyproject","html_url":"https://github.com/galaxyproject","followers_url":"https://api.github.com/users/galaxyproject/followers","following_url":"https://api.github.com/users/galaxyproject/following{/other_user}","gists_url":"https://api.github.com/users/galaxyproject/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxyproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxyproject/subscriptions","organizations_url":"https://api.github.com/users/galaxyproject/orgs","repos_url":"https://api.github.com/users/galaxyproject/repos","events_url":"https://api.github.com/users/galaxyproject/events{/privacy}","received_events_url":"https://api.github.com/users/galaxyproject/received_events","type":"Organization","site_admin":false},"repo":{"id":24777832,"name":"planemo","full_name":"galaxyproject/planemo","owner":{"login":"galaxyproject","id":7937847,"avatar_url":"https://avatars.githubusercontent.com/u/7937847?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxyproject","html_url":"https://github.com/galaxyproject","followers_url":"https://api.github.com/users/galaxyproject/followers","following_url":"https://api.github.com/users/galaxyproject/following{/other_user}","gists_url":"https://api.github.com/users/galaxyproject/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxyproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxyproject/subscriptions","organizations_url":"https://api.github.com/users/galaxyproject/orgs","repos_url":"https://api.github.com/users/galaxyproject/repos","events_url":"https://api.github.com/users/galaxyproject/events{/privacy}","received_events_url":"https://api.github.com/users/galaxyproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/galaxyproject/planemo","description":"Command-line utilities to assist in developing tools for the Galaxy project.","fork":false,"url":"https://api.github.com/repos/galaxyproject/planemo","forks_url":"https://api.github.com/repos/galaxyproject/planemo/forks","keys_url":"https://api.github.com/repos/galaxyproject/planemo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galaxyproject/planemo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galaxyproject/planemo/teams","hooks_url":"https://api.github.com/repos/galaxyproject/planemo/hooks","issue_events_url":"https://api.github.com/repos/galaxyproject/planemo/issues/events{/number}","events_url":"https://api.github.com/repos/galaxyproject/planemo/events","assignees_url":"https://api.github.com/repos/galaxyproject/planemo/assignees{/user}","branches_url":"https://api.github.com/repos/galaxyproject/planemo/branches{/branch}","tags_url":"https://api.github.com/repos/galaxyproject/planemo/tags","blobs_url":"https://api.github.com/repos/galaxyproject/planemo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galaxyproject/planemo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galaxyproject/planemo/git/refs{/sha}","trees_url":"https://api.github.com/repos/galaxyproject/planemo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galaxyproject/planemo/statuses/{sha}","languages_url":"https://api.github.com/repos/galaxyproject/planemo/languages","stargazers_url":"https://api.github.com/repos/galaxyproject/planemo/stargazers","contributors_url":"https://api.github.com/repos/galaxyproject/planemo/contributors","subscribers_url":"https://api.github.com/repos/galaxyproject/planemo/subscribers","subscription_url":"https://api.github.com/repos/galaxyproject/planemo/subscription","commits_url":"https://api.github.com/repos/galaxyproject/planemo/commits{/sha}","git_commits_url":"https://api.github.com/repos/galaxyproject/planemo/git/commits{/sha}","comments_url":"https://api.github.com/repos/galaxyproject/planemo/comments{/number}","issue_comment_url":"https://api.github.com/repos/galaxyproject/planemo/issues/comments{/number}","contents_url":"https://api.github.com/repos/galaxyproject/planemo/contents/{+path}","compare_url":"https://api.github.com/repos/galaxyproject/planemo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galaxyproject/planemo/merges","archive_url":"https://api.github.com/repos/galaxyproject/planemo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galaxyproject/planemo/downloads","issues_url":"https://api.github.com/repos/galaxyproject/planemo/issues{/number}","pulls_url":"https://api.github.com/repos/galaxyproject/planemo/pulls{/number}","milestones_url":"https://api.github.com/repos/galaxyproject/planemo/milestones{/number}","notifications_url":"https://api.github.com/repos/galaxyproject/planemo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galaxyproject/planemo/labels{/name}","releases_url":"https://api.github.com/repos/galaxyproject/planemo/releases{/id}","created_at":"2014-10-04T00:21:23Z","updated_at":"2015-05-02T11:16:11Z","pushed_at":"2015-05-02T11:16:09Z","git_url":"git://github.com/galaxyproject/planemo.git","ssh_url":"git@github.com:galaxyproject/planemo.git","clone_url":"https://github.com/galaxyproject/planemo.git","svn_url":"https://github.com/galaxyproject/planemo","homepage":"http://galaxyproject.org","size":2886,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":53,"forks":12,"open_issues":53,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/174"},"html":{"href":"https://github.com/galaxyproject/planemo/pull/174"},"issue":{"href":"https://api.github.com/repos/galaxyproject/planemo/issues/174"},"comments":{"href":"https://api.github.com/repos/galaxyproject/planemo/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/galaxyproject/planemo/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/galaxyproject/planemo/statuses/231afd8d21ad0fc21c48e1b3312b17fe426818dc"}}}}