{"action":"created","comment":{"url":"https://api.github.com/repos/projectkudu/kudu/pulls/comments/60507195","id":60507195,"diff_hunk":"@@ -173,12 +178,27 @@ public void Initialize()\n                 {\n                     FileSystemHelpers.EnsureDirectory(Path.GetDirectoryName(PostReceiveHookPath));\n \n-                    string content = @\"#!/bin/sh\n-read i\n-echo $i > pushinfo\n-\" + KnownEnvironment.KUDUCOMMAND + \"\\n\";\n-\n-                    File.WriteAllText(PostReceiveHookPath, content);\n+                    //#!/bin/sh\n+                    //read i\n+                    //echo $i > pushinfo\n+                    //KnownEnvironment.KUDUCOMMAND\n+                    StringBuilder sb = new StringBuilder();\n+                    sb.AppendLine(\"#!/bin/sh\");\n+                    sb.AppendLine(\"read i\");\n+                    sb.AppendLine(\"echo $i > pushinfo\");\n+                    sb.AppendLine(\"/usr/bin/mono \" + KnownEnvironment.KUDUCOMMAND);","path":"Kudu.Core/SourceControl/Git/GitExeRepository.cs","position":44,"original_position":44,"commit_id":"fd3fbd2f193f92b34d1882d50817cbb6bb423e75","original_commit_id":"fd3fbd2f193f92b34d1882d50817cbb6bb423e75","user":{"login":"shrimpy","id":79823,"avatar_url":"https://avatars.githubusercontent.com/u/79823?v=3","gravatar_id":"","url":"https://api.github.com/users/shrimpy","html_url":"https://github.com/shrimpy","followers_url":"https://api.github.com/users/shrimpy/followers","following_url":"https://api.github.com/users/shrimpy/following{/other_user}","gists_url":"https://api.github.com/users/shrimpy/gists{/gist_id}","starred_url":"https://api.github.com/users/shrimpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrimpy/subscriptions","organizations_url":"https://api.github.com/users/shrimpy/orgs","repos_url":"https://api.github.com/users/shrimpy/repos","events_url":"https://api.github.com/users/shrimpy/events{/privacy}","received_events_url":"https://api.github.com/users/shrimpy/received_events","type":"User","site_admin":false},"body":"right, i should have a statement to choose depending on platform.","created_at":"2016-04-20T23:51:23Z","updated_at":"2016-04-20T23:51:23Z","html_url":"https://github.com/projectkudu/kudu/pull/1964#discussion_r60507195","pull_request_url":"https://api.github.com/repos/projectkudu/kudu/pulls/1964","_links":{"self":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/comments/60507195"},"html":{"href":"https://github.com/projectkudu/kudu/pull/1964#discussion_r60507195"},"pull_request":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/1964"}}},"pull_request":{"url":"https://api.github.com/repos/projectkudu/kudu/pulls/1964","id":66248048,"html_url":"https://github.com/projectkudu/kudu/pull/1964","diff_url":"https://github.com/projectkudu/kudu/pull/1964.diff","patch_url":"https://github.com/projectkudu/kudu/pull/1964.patch","issue_url":"https://api.github.com/repos/projectkudu/kudu/issues/1964","number":1964,"state":"open","locked":false,"title":"Enable Kudu to run on Mono","user":{"login":"shrimpy","id":79823,"avatar_url":"https://avatars.githubusercontent.com/u/79823?v=3","gravatar_id":"","url":"https://api.github.com/users/shrimpy","html_url":"https://github.com/shrimpy","followers_url":"https://api.github.com/users/shrimpy/followers","following_url":"https://api.github.com/users/shrimpy/following{/other_user}","gists_url":"https://api.github.com/users/shrimpy/gists{/gist_id}","starred_url":"https://api.github.com/users/shrimpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrimpy/subscriptions","organizations_url":"https://api.github.com/users/shrimpy/orgs","repos_url":"https://api.github.com/users/shrimpy/repos","events_url":"https://api.github.com/users/shrimpy/events{/privacy}","received_events_url":"https://api.github.com/users/shrimpy/received_events","type":"User","site_admin":false},"body":"Run kudu on mono\r\nSolve issue that deployment lock not working on kudu.exe\r\nUpdate PathUtility to aware of other OS\r\nGrant full permission to post receive hook\r\nHide unsupported Kudu feature ","created_at":"2016-04-13T00:07:46Z","updated_at":"2016-04-20T23:51:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"119c7c7f3b9e40038635b4285846f8cbaaf61706","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectkudu/kudu/pulls/1964/commits","review_comments_url":"https://api.github.com/repos/projectkudu/kudu/pulls/1964/comments","review_comment_url":"https://api.github.com/repos/projectkudu/kudu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectkudu/kudu/issues/1964/comments","statuses_url":"https://api.github.com/repos/projectkudu/kudu/statuses/fd3fbd2f193f92b34d1882d50817cbb6bb423e75","head":{"label":"projectkudu:xiaowu-work-1","ref":"xiaowu-work-1","sha":"fd3fbd2f193f92b34d1882d50817cbb6bb423e75","user":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"repo":{"id":1939769,"name":"kudu","full_name":"projectkudu/kudu","owner":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectkudu/kudu","description":"Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.","fork":false,"url":"https://api.github.com/repos/projectkudu/kudu","forks_url":"https://api.github.com/repos/projectkudu/kudu/forks","keys_url":"https://api.github.com/repos/projectkudu/kudu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectkudu/kudu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectkudu/kudu/teams","hooks_url":"https://api.github.com/repos/projectkudu/kudu/hooks","issue_events_url":"https://api.github.com/repos/projectkudu/kudu/issues/events{/number}","events_url":"https://api.github.com/repos/projectkudu/kudu/events","assignees_url":"https://api.github.com/repos/projectkudu/kudu/assignees{/user}","branches_url":"https://api.github.com/repos/projectkudu/kudu/branches{/branch}","tags_url":"https://api.github.com/repos/projectkudu/kudu/tags","blobs_url":"https://api.github.com/repos/projectkudu/kudu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectkudu/kudu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectkudu/kudu/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectkudu/kudu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectkudu/kudu/statuses/{sha}","languages_url":"https://api.github.com/repos/projectkudu/kudu/languages","stargazers_url":"https://api.github.com/repos/projectkudu/kudu/stargazers","contributors_url":"https://api.github.com/repos/projectkudu/kudu/contributors","subscribers_url":"https://api.github.com/repos/projectkudu/kudu/subscribers","subscription_url":"https://api.github.com/repos/projectkudu/kudu/subscription","commits_url":"https://api.github.com/repos/projectkudu/kudu/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectkudu/kudu/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectkudu/kudu/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectkudu/kudu/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectkudu/kudu/contents/{+path}","compare_url":"https://api.github.com/repos/projectkudu/kudu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectkudu/kudu/merges","archive_url":"https://api.github.com/repos/projectkudu/kudu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectkudu/kudu/downloads","issues_url":"https://api.github.com/repos/projectkudu/kudu/issues{/number}","pulls_url":"https://api.github.com/repos/projectkudu/kudu/pulls{/number}","milestones_url":"https://api.github.com/repos/projectkudu/kudu/milestones{/number}","notifications_url":"https://api.github.com/repos/projectkudu/kudu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectkudu/kudu/labels{/name}","releases_url":"https://api.github.com/repos/projectkudu/kudu/releases{/id}","deployments_url":"https://api.github.com/repos/projectkudu/kudu/deployments","created_at":"2011-06-23T05:36:20Z","updated_at":"2016-04-20T22:47:34Z","pushed_at":"2016-04-20T21:36:11Z","git_url":"git://github.com/projectkudu/kudu.git","ssh_url":"git@github.com:projectkudu/kudu.git","clone_url":"https://github.com/projectkudu/kudu.git","svn_url":"https://github.com/projectkudu/kudu","homepage":"","size":36574,"stargazers_count":1246,"watchers_count":1246,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":259,"mirror_url":null,"open_issues_count":187,"forks":259,"open_issues":187,"watchers":1246,"default_branch":"master"}},"base":{"label":"projectkudu:master","ref":"master","sha":"63e4c4003bf856ca23d0c319b024684d7765df87","user":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"repo":{"id":1939769,"name":"kudu","full_name":"projectkudu/kudu","owner":{"login":"projectkudu","id":927131,"avatar_url":"https://avatars.githubusercontent.com/u/927131?v=3","gravatar_id":"","url":"https://api.github.com/users/projectkudu","html_url":"https://github.com/projectkudu","followers_url":"https://api.github.com/users/projectkudu/followers","following_url":"https://api.github.com/users/projectkudu/following{/other_user}","gists_url":"https://api.github.com/users/projectkudu/gists{/gist_id}","starred_url":"https://api.github.com/users/projectkudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectkudu/subscriptions","organizations_url":"https://api.github.com/users/projectkudu/orgs","repos_url":"https://api.github.com/users/projectkudu/repos","events_url":"https://api.github.com/users/projectkudu/events{/privacy}","received_events_url":"https://api.github.com/users/projectkudu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectkudu/kudu","description":"Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.","fork":false,"url":"https://api.github.com/repos/projectkudu/kudu","forks_url":"https://api.github.com/repos/projectkudu/kudu/forks","keys_url":"https://api.github.com/repos/projectkudu/kudu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectkudu/kudu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectkudu/kudu/teams","hooks_url":"https://api.github.com/repos/projectkudu/kudu/hooks","issue_events_url":"https://api.github.com/repos/projectkudu/kudu/issues/events{/number}","events_url":"https://api.github.com/repos/projectkudu/kudu/events","assignees_url":"https://api.github.com/repos/projectkudu/kudu/assignees{/user}","branches_url":"https://api.github.com/repos/projectkudu/kudu/branches{/branch}","tags_url":"https://api.github.com/repos/projectkudu/kudu/tags","blobs_url":"https://api.github.com/repos/projectkudu/kudu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectkudu/kudu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectkudu/kudu/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectkudu/kudu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectkudu/kudu/statuses/{sha}","languages_url":"https://api.github.com/repos/projectkudu/kudu/languages","stargazers_url":"https://api.github.com/repos/projectkudu/kudu/stargazers","contributors_url":"https://api.github.com/repos/projectkudu/kudu/contributors","subscribers_url":"https://api.github.com/repos/projectkudu/kudu/subscribers","subscription_url":"https://api.github.com/repos/projectkudu/kudu/subscription","commits_url":"https://api.github.com/repos/projectkudu/kudu/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectkudu/kudu/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectkudu/kudu/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectkudu/kudu/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectkudu/kudu/contents/{+path}","compare_url":"https://api.github.com/repos/projectkudu/kudu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectkudu/kudu/merges","archive_url":"https://api.github.com/repos/projectkudu/kudu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectkudu/kudu/downloads","issues_url":"https://api.github.com/repos/projectkudu/kudu/issues{/number}","pulls_url":"https://api.github.com/repos/projectkudu/kudu/pulls{/number}","milestones_url":"https://api.github.com/repos/projectkudu/kudu/milestones{/number}","notifications_url":"https://api.github.com/repos/projectkudu/kudu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectkudu/kudu/labels{/name}","releases_url":"https://api.github.com/repos/projectkudu/kudu/releases{/id}","deployments_url":"https://api.github.com/repos/projectkudu/kudu/deployments","created_at":"2011-06-23T05:36:20Z","updated_at":"2016-04-20T22:47:34Z","pushed_at":"2016-04-20T21:36:11Z","git_url":"git://github.com/projectkudu/kudu.git","ssh_url":"git@github.com:projectkudu/kudu.git","clone_url":"https://github.com/projectkudu/kudu.git","svn_url":"https://github.com/projectkudu/kudu","homepage":"","size":36574,"stargazers_count":1246,"watchers_count":1246,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":259,"mirror_url":null,"open_issues_count":187,"forks":259,"open_issues":187,"watchers":1246,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/1964"},"html":{"href":"https://github.com/projectkudu/kudu/pull/1964"},"issue":{"href":"https://api.github.com/repos/projectkudu/kudu/issues/1964"},"comments":{"href":"https://api.github.com/repos/projectkudu/kudu/issues/1964/comments"},"review_comments":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/1964/comments"},"review_comment":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectkudu/kudu/pulls/1964/commits"},"statuses":{"href":"https://api.github.com/repos/projectkudu/kudu/statuses/fd3fbd2f193f92b34d1882d50817cbb6bb423e75"}}}}