{"action":"created","comment":{"url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/comments/56655428","id":56655428,"diff_hunk":"@@ -1084,8 +1084,9 @@ cmd specifies a command to exec.  Valid commands are:\n                  (->>\n                   (select-keys opts [:recursive :preserve])\n                   (filter val)\n-                  (map (fn [k v] (k flags))))))\n+                  (map (comp flags key)))))\n                (string/join \" \" remote-paths))\n+          _ (println cmd)","path":"src/clj_ssh/ssh.clj","position":7,"original_position":7,"commit_id":"16361d2571a71c3ef90a1919ce452c5bf52931b4","original_commit_id":"16361d2571a71c3ef90a1919ce452c5bf52931b4","user":{"login":"aphyr","id":3748,"avatar_url":"https://avatars.githubusercontent.com/u/3748?v=3","gravatar_id":"","url":"https://api.github.com/users/aphyr","html_url":"https://github.com/aphyr","followers_url":"https://api.github.com/users/aphyr/followers","following_url":"https://api.github.com/users/aphyr/following{/other_user}","gists_url":"https://api.github.com/users/aphyr/gists{/gist_id}","starred_url":"https://api.github.com/users/aphyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphyr/subscriptions","organizations_url":"https://api.github.com/users/aphyr/orgs","repos_url":"https://api.github.com/users/aphyr/repos","events_url":"https://api.github.com/users/aphyr/events{/privacy}","received_events_url":"https://api.github.com/users/aphyr/received_events","type":"User","site_admin":false},"body":"Ah, yes, that looks like my mistake. Sorry bout that!","created_at":"2016-03-18T13:32:08Z","updated_at":"2016-03-18T13:32:08Z","html_url":"https://github.com/hugoduncan/clj-ssh/pull/35#discussion_r56655428","pull_request_url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/comments/56655428"},"html":{"href":"https://github.com/hugoduncan/clj-ssh/pull/35#discussion_r56655428"},"pull_request":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35","id":39018854,"html_url":"https://github.com/hugoduncan/clj-ssh/pull/35","diff_url":"https://github.com/hugoduncan/clj-ssh/pull/35.diff","patch_url":"https://github.com/hugoduncan/clj-ssh/pull/35.patch","issue_url":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/35","number":35,"state":"closed","locked":false,"title":"clj-ssh/download: fix :recursive and :preserve flags.","user":{"login":"aphyr","id":3748,"avatar_url":"https://avatars.githubusercontent.com/u/3748?v=3","gravatar_id":"","url":"https://api.github.com/users/aphyr","html_url":"https://github.com/aphyr","followers_url":"https://api.github.com/users/aphyr/followers","following_url":"https://api.github.com/users/aphyr/following{/other_user}","gists_url":"https://api.github.com/users/aphyr/gists{/gist_id}","starred_url":"https://api.github.com/users/aphyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphyr/subscriptions","organizations_url":"https://api.github.com/users/aphyr/orgs","repos_url":"https://api.github.com/users/aphyr/repos","events_url":"https://api.github.com/users/aphyr/events{/privacy}","received_events_url":"https://api.github.com/users/aphyr/received_events","type":"User","site_admin":false},"body":"Support for :recursive and :preserve called (map) on a kv map without destructuring the pairs, resulting in an arity mismatch exception. This patch pulls out the keys so we can pass the -p and -r flags to scp correctly. Recursive is still broken, however--it verifies the output path is a directory, then opens it as a file and clobbers it with each source file in turn.","created_at":"2015-07-01T19:55:08Z","updated_at":"2016-03-18T13:32:08Z","closed_at":"2016-03-17T21:46:33Z","merged_at":"2016-03-17T21:46:33Z","merge_commit_sha":"d3d7eb53d2b8e6cd2b275bc273b79f5d63dc0c6a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35/commits","review_comments_url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35/comments","review_comment_url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/35/comments","statuses_url":"https://api.github.com/repos/hugoduncan/clj-ssh/statuses/16361d2571a71c3ef90a1919ce452c5bf52931b4","head":{"label":"aphyr:develop","ref":"develop","sha":"16361d2571a71c3ef90a1919ce452c5bf52931b4","user":{"login":"aphyr","id":3748,"avatar_url":"https://avatars.githubusercontent.com/u/3748?v=3","gravatar_id":"","url":"https://api.github.com/users/aphyr","html_url":"https://github.com/aphyr","followers_url":"https://api.github.com/users/aphyr/followers","following_url":"https://api.github.com/users/aphyr/following{/other_user}","gists_url":"https://api.github.com/users/aphyr/gists{/gist_id}","starred_url":"https://api.github.com/users/aphyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphyr/subscriptions","organizations_url":"https://api.github.com/users/aphyr/orgs","repos_url":"https://api.github.com/users/aphyr/repos","events_url":"https://api.github.com/users/aphyr/events{/privacy}","received_events_url":"https://api.github.com/users/aphyr/received_events","type":"User","site_admin":false},"repo":{"id":38389357,"name":"clj-ssh","full_name":"aphyr/clj-ssh","owner":{"login":"aphyr","id":3748,"avatar_url":"https://avatars.githubusercontent.com/u/3748?v=3","gravatar_id":"","url":"https://api.github.com/users/aphyr","html_url":"https://github.com/aphyr","followers_url":"https://api.github.com/users/aphyr/followers","following_url":"https://api.github.com/users/aphyr/following{/other_user}","gists_url":"https://api.github.com/users/aphyr/gists{/gist_id}","starred_url":"https://api.github.com/users/aphyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphyr/subscriptions","organizations_url":"https://api.github.com/users/aphyr/orgs","repos_url":"https://api.github.com/users/aphyr/repos","events_url":"https://api.github.com/users/aphyr/events{/privacy}","received_events_url":"https://api.github.com/users/aphyr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aphyr/clj-ssh","description":"SSH commands via jsch","fork":true,"url":"https://api.github.com/repos/aphyr/clj-ssh","forks_url":"https://api.github.com/repos/aphyr/clj-ssh/forks","keys_url":"https://api.github.com/repos/aphyr/clj-ssh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aphyr/clj-ssh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aphyr/clj-ssh/teams","hooks_url":"https://api.github.com/repos/aphyr/clj-ssh/hooks","issue_events_url":"https://api.github.com/repos/aphyr/clj-ssh/issues/events{/number}","events_url":"https://api.github.com/repos/aphyr/clj-ssh/events","assignees_url":"https://api.github.com/repos/aphyr/clj-ssh/assignees{/user}","branches_url":"https://api.github.com/repos/aphyr/clj-ssh/branches{/branch}","tags_url":"https://api.github.com/repos/aphyr/clj-ssh/tags","blobs_url":"https://api.github.com/repos/aphyr/clj-ssh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aphyr/clj-ssh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aphyr/clj-ssh/git/refs{/sha}","trees_url":"https://api.github.com/repos/aphyr/clj-ssh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aphyr/clj-ssh/statuses/{sha}","languages_url":"https://api.github.com/repos/aphyr/clj-ssh/languages","stargazers_url":"https://api.github.com/repos/aphyr/clj-ssh/stargazers","contributors_url":"https://api.github.com/repos/aphyr/clj-ssh/contributors","subscribers_url":"https://api.github.com/repos/aphyr/clj-ssh/subscribers","subscription_url":"https://api.github.com/repos/aphyr/clj-ssh/subscription","commits_url":"https://api.github.com/repos/aphyr/clj-ssh/commits{/sha}","git_commits_url":"https://api.github.com/repos/aphyr/clj-ssh/git/commits{/sha}","comments_url":"https://api.github.com/repos/aphyr/clj-ssh/comments{/number}","issue_comment_url":"https://api.github.com/repos/aphyr/clj-ssh/issues/comments{/number}","contents_url":"https://api.github.com/repos/aphyr/clj-ssh/contents/{+path}","compare_url":"https://api.github.com/repos/aphyr/clj-ssh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aphyr/clj-ssh/merges","archive_url":"https://api.github.com/repos/aphyr/clj-ssh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aphyr/clj-ssh/downloads","issues_url":"https://api.github.com/repos/aphyr/clj-ssh/issues{/number}","pulls_url":"https://api.github.com/repos/aphyr/clj-ssh/pulls{/number}","milestones_url":"https://api.github.com/repos/aphyr/clj-ssh/milestones{/number}","notifications_url":"https://api.github.com/repos/aphyr/clj-ssh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aphyr/clj-ssh/labels{/name}","releases_url":"https://api.github.com/repos/aphyr/clj-ssh/releases{/id}","deployments_url":"https://api.github.com/repos/aphyr/clj-ssh/deployments","created_at":"2015-07-01T18:59:57Z","updated_at":"2015-07-01T18:59:58Z","pushed_at":"2015-07-01T19:53:42Z","git_url":"git://github.com/aphyr/clj-ssh.git","ssh_url":"git@github.com:aphyr/clj-ssh.git","clone_url":"https://github.com/aphyr/clj-ssh.git","svn_url":"https://github.com/aphyr/clj-ssh","homepage":"","size":519,"stargazers_count":0,"watchers_count":0,"language":"Clojure","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"hugoduncan:develop","ref":"develop","sha":"c58b4ee2ed190bb16618680bf45fd46e603f51c4","user":{"login":"hugoduncan","id":54043,"avatar_url":"https://avatars.githubusercontent.com/u/54043?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoduncan","html_url":"https://github.com/hugoduncan","followers_url":"https://api.github.com/users/hugoduncan/followers","following_url":"https://api.github.com/users/hugoduncan/following{/other_user}","gists_url":"https://api.github.com/users/hugoduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoduncan/subscriptions","organizations_url":"https://api.github.com/users/hugoduncan/orgs","repos_url":"https://api.github.com/users/hugoduncan/repos","events_url":"https://api.github.com/users/hugoduncan/events{/privacy}","received_events_url":"https://api.github.com/users/hugoduncan/received_events","type":"User","site_admin":false},"repo":{"id":549073,"name":"clj-ssh","full_name":"hugoduncan/clj-ssh","owner":{"login":"hugoduncan","id":54043,"avatar_url":"https://avatars.githubusercontent.com/u/54043?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoduncan","html_url":"https://github.com/hugoduncan","followers_url":"https://api.github.com/users/hugoduncan/followers","following_url":"https://api.github.com/users/hugoduncan/following{/other_user}","gists_url":"https://api.github.com/users/hugoduncan/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoduncan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoduncan/subscriptions","organizations_url":"https://api.github.com/users/hugoduncan/orgs","repos_url":"https://api.github.com/users/hugoduncan/repos","events_url":"https://api.github.com/users/hugoduncan/events{/privacy}","received_events_url":"https://api.github.com/users/hugoduncan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hugoduncan/clj-ssh","description":"SSH commands via jsch","fork":false,"url":"https://api.github.com/repos/hugoduncan/clj-ssh","forks_url":"https://api.github.com/repos/hugoduncan/clj-ssh/forks","keys_url":"https://api.github.com/repos/hugoduncan/clj-ssh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hugoduncan/clj-ssh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hugoduncan/clj-ssh/teams","hooks_url":"https://api.github.com/repos/hugoduncan/clj-ssh/hooks","issue_events_url":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/events{/number}","events_url":"https://api.github.com/repos/hugoduncan/clj-ssh/events","assignees_url":"https://api.github.com/repos/hugoduncan/clj-ssh/assignees{/user}","branches_url":"https://api.github.com/repos/hugoduncan/clj-ssh/branches{/branch}","tags_url":"https://api.github.com/repos/hugoduncan/clj-ssh/tags","blobs_url":"https://api.github.com/repos/hugoduncan/clj-ssh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hugoduncan/clj-ssh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hugoduncan/clj-ssh/git/refs{/sha}","trees_url":"https://api.github.com/repos/hugoduncan/clj-ssh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hugoduncan/clj-ssh/statuses/{sha}","languages_url":"https://api.github.com/repos/hugoduncan/clj-ssh/languages","stargazers_url":"https://api.github.com/repos/hugoduncan/clj-ssh/stargazers","contributors_url":"https://api.github.com/repos/hugoduncan/clj-ssh/contributors","subscribers_url":"https://api.github.com/repos/hugoduncan/clj-ssh/subscribers","subscription_url":"https://api.github.com/repos/hugoduncan/clj-ssh/subscription","commits_url":"https://api.github.com/repos/hugoduncan/clj-ssh/commits{/sha}","git_commits_url":"https://api.github.com/repos/hugoduncan/clj-ssh/git/commits{/sha}","comments_url":"https://api.github.com/repos/hugoduncan/clj-ssh/comments{/number}","issue_comment_url":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/comments{/number}","contents_url":"https://api.github.com/repos/hugoduncan/clj-ssh/contents/{+path}","compare_url":"https://api.github.com/repos/hugoduncan/clj-ssh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hugoduncan/clj-ssh/merges","archive_url":"https://api.github.com/repos/hugoduncan/clj-ssh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hugoduncan/clj-ssh/downloads","issues_url":"https://api.github.com/repos/hugoduncan/clj-ssh/issues{/number}","pulls_url":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls{/number}","milestones_url":"https://api.github.com/repos/hugoduncan/clj-ssh/milestones{/number}","notifications_url":"https://api.github.com/repos/hugoduncan/clj-ssh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hugoduncan/clj-ssh/labels{/name}","releases_url":"https://api.github.com/repos/hugoduncan/clj-ssh/releases{/id}","deployments_url":"https://api.github.com/repos/hugoduncan/clj-ssh/deployments","created_at":"2010-03-05T21:29:48Z","updated_at":"2016-02-26T23:20:02Z","pushed_at":"2016-03-18T13:16:56Z","git_url":"git://github.com/hugoduncan/clj-ssh.git","ssh_url":"git@github.com:hugoduncan/clj-ssh.git","clone_url":"https://github.com/hugoduncan/clj-ssh.git","svn_url":"https://github.com/hugoduncan/clj-ssh","homepage":"","size":499,"stargazers_count":139,"watchers_count":139,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":21,"forks":37,"open_issues":21,"watchers":139,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35"},"html":{"href":"https://github.com/hugoduncan/clj-ssh/pull/35"},"issue":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/35"},"comments":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/hugoduncan/clj-ssh/statuses/16361d2571a71c3ef90a1919ce452c5bf52931b4"}}}}