{"action":"created","comment":{"url":"https://api.github.com/repos/GitTools/GitVersion/pulls/comments/41660156","id":41660156,"diff_hunk":"@@ -129,17 +130,27 @@ static void ConfigureLogging(Arguments arguments)\n             {\n                 try\n                 {\n-                    Directory.CreateDirectory(Path.GetDirectoryName(arguments.LogFilePath));\n-                    if (File.Exists(arguments.LogFilePath))\n+                    var logFileFullPath = Path.GetFullPath(arguments.LogFilePath);\n+                    var logFile = new FileInfo(logFileFullPath);\n+\n+                    // NOTE: logFile.Directory will be null if the path is i.e. C:\\logfile.log. @asbjornu\n+                    if (logFile.Directory != null)\n+                    {\n+                        logFile.Directory.Create();\n+                    }\n+\n+                    if (!logFile.Exists)","path":"src/GitVersionExe/Program.cs","position":23,"original_position":23,"commit_id":"30f5cfbf4aa0560c3d407c3e49806c6d84659baa","original_commit_id":"30f5cfbf4aa0560c3d407c3e49806c6d84659baa","user":{"login":"orjan","id":124032,"avatar_url":"https://avatars.githubusercontent.com/u/124032?v=3","gravatar_id":"","url":"https://api.github.com/users/orjan","html_url":"https://github.com/orjan","followers_url":"https://api.github.com/users/orjan/followers","following_url":"https://api.github.com/users/orjan/following{/other_user}","gists_url":"https://api.github.com/users/orjan/gists{/gist_id}","starred_url":"https://api.github.com/users/orjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orjan/subscriptions","organizations_url":"https://api.github.com/users/orjan/orgs","repos_url":"https://api.github.com/users/orjan/repos","events_url":"https://api.github.com/users/orjan/events{/privacy}","received_events_url":"https://api.github.com/users/orjan/received_events","type":"User","site_admin":false},"body":"@asbjornu we'll possible hit some regression due to this if-statement, since it means that we're appending the log instead of overwriting the file as we're doing in the current `master`\r\n","created_at":"2015-10-09T18:05:47Z","updated_at":"2015-10-09T18:05:47Z","html_url":"https://github.com/GitTools/GitVersion/pull/678#discussion_r41660156","pull_request_url":"https://api.github.com/repos/GitTools/GitVersion/pulls/678","_links":{"self":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/comments/41660156"},"html":{"href":"https://github.com/GitTools/GitVersion/pull/678#discussion_r41660156"},"pull_request":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/GitTools/GitVersion/pulls/678","id":47125189,"html_url":"https://github.com/GitTools/GitVersion/pull/678","diff_url":"https://github.com/GitTools/GitVersion/pull/678.diff","patch_url":"https://github.com/GitTools/GitVersion/pull/678.patch","issue_url":"https://api.github.com/repos/GitTools/GitVersion/issues/678","number":678,"state":"open","locked":false,"title":"Add support for relative logfile paths","user":{"login":"asbjornu","id":12283,"avatar_url":"https://avatars.githubusercontent.com/u/12283?v=3","gravatar_id":"","url":"https://api.github.com/users/asbjornu","html_url":"https://github.com/asbjornu","followers_url":"https://api.github.com/users/asbjornu/followers","following_url":"https://api.github.com/users/asbjornu/following{/other_user}","gists_url":"https://api.github.com/users/asbjornu/gists{/gist_id}","starred_url":"https://api.github.com/users/asbjornu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asbjornu/subscriptions","organizations_url":"https://api.github.com/users/asbjornu/orgs","repos_url":"https://api.github.com/users/asbjornu/repos","events_url":"https://api.github.com/users/asbjornu/events{/privacy}","received_events_url":"https://api.github.com/users/asbjornu/received_events","type":"User","site_admin":false},"body":"This changes the handling of `Arguments.LogFilePath` such that it can be relative as well as absolute. It also improves what is logged to the console when the log file can't be created.","created_at":"2015-10-08T08:39:57Z","updated_at":"2015-10-09T18:05:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2881f7f3acd104456d11e36266b860f1d93332d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GitTools/GitVersion/pulls/678/commits","review_comments_url":"https://api.github.com/repos/GitTools/GitVersion/pulls/678/comments","review_comment_url":"https://api.github.com/repos/GitTools/GitVersion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/678/comments","statuses_url":"https://api.github.com/repos/GitTools/GitVersion/statuses/30f5cfbf4aa0560c3d407c3e49806c6d84659baa","head":{"label":"okb:feature/support-relative-logfile","ref":"feature/support-relative-logfile","sha":"30f5cfbf4aa0560c3d407c3e49806c6d84659baa","user":{"login":"okb","id":1201434,"avatar_url":"https://avatars.githubusercontent.com/u/1201434?v=3","gravatar_id":"","url":"https://api.github.com/users/okb","html_url":"https://github.com/okb","followers_url":"https://api.github.com/users/okb/followers","following_url":"https://api.github.com/users/okb/following{/other_user}","gists_url":"https://api.github.com/users/okb/gists{/gist_id}","starred_url":"https://api.github.com/users/okb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okb/subscriptions","organizations_url":"https://api.github.com/users/okb/orgs","repos_url":"https://api.github.com/users/okb/repos","events_url":"https://api.github.com/users/okb/events{/privacy}","received_events_url":"https://api.github.com/users/okb/received_events","type":"Organization","site_admin":false},"repo":{"id":25635139,"name":"GitVersion","full_name":"okb/GitVersion","owner":{"login":"okb","id":1201434,"avatar_url":"https://avatars.githubusercontent.com/u/1201434?v=3","gravatar_id":"","url":"https://api.github.com/users/okb","html_url":"https://github.com/okb","followers_url":"https://api.github.com/users/okb/followers","following_url":"https://api.github.com/users/okb/following{/other_user}","gists_url":"https://api.github.com/users/okb/gists{/gist_id}","starred_url":"https://api.github.com/users/okb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okb/subscriptions","organizations_url":"https://api.github.com/users/okb/orgs","repos_url":"https://api.github.com/users/okb/repos","events_url":"https://api.github.com/users/okb/events{/privacy}","received_events_url":"https://api.github.com/users/okb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okb/GitVersion","description":"Use convention to derive a SemVer product version from a GitFlow based repository","fork":true,"url":"https://api.github.com/repos/okb/GitVersion","forks_url":"https://api.github.com/repos/okb/GitVersion/forks","keys_url":"https://api.github.com/repos/okb/GitVersion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okb/GitVersion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okb/GitVersion/teams","hooks_url":"https://api.github.com/repos/okb/GitVersion/hooks","issue_events_url":"https://api.github.com/repos/okb/GitVersion/issues/events{/number}","events_url":"https://api.github.com/repos/okb/GitVersion/events","assignees_url":"https://api.github.com/repos/okb/GitVersion/assignees{/user}","branches_url":"https://api.github.com/repos/okb/GitVersion/branches{/branch}","tags_url":"https://api.github.com/repos/okb/GitVersion/tags","blobs_url":"https://api.github.com/repos/okb/GitVersion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okb/GitVersion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okb/GitVersion/git/refs{/sha}","trees_url":"https://api.github.com/repos/okb/GitVersion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okb/GitVersion/statuses/{sha}","languages_url":"https://api.github.com/repos/okb/GitVersion/languages","stargazers_url":"https://api.github.com/repos/okb/GitVersion/stargazers","contributors_url":"https://api.github.com/repos/okb/GitVersion/contributors","subscribers_url":"https://api.github.com/repos/okb/GitVersion/subscribers","subscription_url":"https://api.github.com/repos/okb/GitVersion/subscription","commits_url":"https://api.github.com/repos/okb/GitVersion/commits{/sha}","git_commits_url":"https://api.github.com/repos/okb/GitVersion/git/commits{/sha}","comments_url":"https://api.github.com/repos/okb/GitVersion/comments{/number}","issue_comment_url":"https://api.github.com/repos/okb/GitVersion/issues/comments{/number}","contents_url":"https://api.github.com/repos/okb/GitVersion/contents/{+path}","compare_url":"https://api.github.com/repos/okb/GitVersion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okb/GitVersion/merges","archive_url":"https://api.github.com/repos/okb/GitVersion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okb/GitVersion/downloads","issues_url":"https://api.github.com/repos/okb/GitVersion/issues{/number}","pulls_url":"https://api.github.com/repos/okb/GitVersion/pulls{/number}","milestones_url":"https://api.github.com/repos/okb/GitVersion/milestones{/number}","notifications_url":"https://api.github.com/repos/okb/GitVersion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okb/GitVersion/labels{/name}","releases_url":"https://api.github.com/repos/okb/GitVersion/releases{/id}","created_at":"2014-10-23T12:11:19Z","updated_at":"2014-11-17T09:16:35Z","pushed_at":"2015-10-09T11:02:12Z","git_url":"git://github.com/okb/GitVersion.git","ssh_url":"git@github.com:okb/GitVersion.git","clone_url":"https://github.com/okb/GitVersion.git","svn_url":"https://github.com/okb/GitVersion","homepage":"http://particular.github.io/GitVersion/","size":6951,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"GitTools:master","ref":"master","sha":"0d87102e7b03d6dad8bed8965adbbe15b9467a39","user":{"login":"GitTools","id":11839771,"avatar_url":"https://avatars.githubusercontent.com/u/11839771?v=3","gravatar_id":"","url":"https://api.github.com/users/GitTools","html_url":"https://github.com/GitTools","followers_url":"https://api.github.com/users/GitTools/followers","following_url":"https://api.github.com/users/GitTools/following{/other_user}","gists_url":"https://api.github.com/users/GitTools/gists{/gist_id}","starred_url":"https://api.github.com/users/GitTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitTools/subscriptions","organizations_url":"https://api.github.com/users/GitTools/orgs","repos_url":"https://api.github.com/users/GitTools/repos","events_url":"https://api.github.com/users/GitTools/events{/privacy}","received_events_url":"https://api.github.com/users/GitTools/received_events","type":"Organization","site_admin":false},"repo":{"id":12399790,"name":"GitVersion","full_name":"GitTools/GitVersion","owner":{"login":"GitTools","id":11839771,"avatar_url":"https://avatars.githubusercontent.com/u/11839771?v=3","gravatar_id":"","url":"https://api.github.com/users/GitTools","html_url":"https://github.com/GitTools","followers_url":"https://api.github.com/users/GitTools/followers","following_url":"https://api.github.com/users/GitTools/following{/other_user}","gists_url":"https://api.github.com/users/GitTools/gists{/gist_id}","starred_url":"https://api.github.com/users/GitTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitTools/subscriptions","organizations_url":"https://api.github.com/users/GitTools/orgs","repos_url":"https://api.github.com/users/GitTools/repos","events_url":"https://api.github.com/users/GitTools/events{/privacy}","received_events_url":"https://api.github.com/users/GitTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GitTools/GitVersion","description":"Easy Semantic Versioning (http://semver.org) for projects using Git","fork":false,"url":"https://api.github.com/repos/GitTools/GitVersion","forks_url":"https://api.github.com/repos/GitTools/GitVersion/forks","keys_url":"https://api.github.com/repos/GitTools/GitVersion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GitTools/GitVersion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GitTools/GitVersion/teams","hooks_url":"https://api.github.com/repos/GitTools/GitVersion/hooks","issue_events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/events{/number}","events_url":"https://api.github.com/repos/GitTools/GitVersion/events","assignees_url":"https://api.github.com/repos/GitTools/GitVersion/assignees{/user}","branches_url":"https://api.github.com/repos/GitTools/GitVersion/branches{/branch}","tags_url":"https://api.github.com/repos/GitTools/GitVersion/tags","blobs_url":"https://api.github.com/repos/GitTools/GitVersion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GitTools/GitVersion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GitTools/GitVersion/git/refs{/sha}","trees_url":"https://api.github.com/repos/GitTools/GitVersion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GitTools/GitVersion/statuses/{sha}","languages_url":"https://api.github.com/repos/GitTools/GitVersion/languages","stargazers_url":"https://api.github.com/repos/GitTools/GitVersion/stargazers","contributors_url":"https://api.github.com/repos/GitTools/GitVersion/contributors","subscribers_url":"https://api.github.com/repos/GitTools/GitVersion/subscribers","subscription_url":"https://api.github.com/repos/GitTools/GitVersion/subscription","commits_url":"https://api.github.com/repos/GitTools/GitVersion/commits{/sha}","git_commits_url":"https://api.github.com/repos/GitTools/GitVersion/git/commits{/sha}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/comments{/number}","issue_comment_url":"https://api.github.com/repos/GitTools/GitVersion/issues/comments{/number}","contents_url":"https://api.github.com/repos/GitTools/GitVersion/contents/{+path}","compare_url":"https://api.github.com/repos/GitTools/GitVersion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GitTools/GitVersion/merges","archive_url":"https://api.github.com/repos/GitTools/GitVersion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GitTools/GitVersion/downloads","issues_url":"https://api.github.com/repos/GitTools/GitVersion/issues{/number}","pulls_url":"https://api.github.com/repos/GitTools/GitVersion/pulls{/number}","milestones_url":"https://api.github.com/repos/GitTools/GitVersion/milestones{/number}","notifications_url":"https://api.github.com/repos/GitTools/GitVersion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GitTools/GitVersion/labels{/name}","releases_url":"https://api.github.com/repos/GitTools/GitVersion/releases{/id}","created_at":"2013-08-27T07:30:20Z","updated_at":"2015-10-08T21:49:57Z","pushed_at":"2015-10-09T11:02:12Z","git_url":"git://github.com/GitTools/GitVersion.git","ssh_url":"git@github.com:GitTools/GitVersion.git","clone_url":"https://github.com/GitTools/GitVersion.git","svn_url":"https://github.com/GitTools/GitVersion","homepage":"http://gitversion.readthedocs.org/en/latest/","size":10146,"stargazers_count":299,"watchers_count":299,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":105,"mirror_url":null,"open_issues_count":66,"forks":105,"open_issues":66,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/678"},"html":{"href":"https://github.com/GitTools/GitVersion/pull/678"},"issue":{"href":"https://api.github.com/repos/GitTools/GitVersion/issues/678"},"comments":{"href":"https://api.github.com/repos/GitTools/GitVersion/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GitTools/GitVersion/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/GitTools/GitVersion/statuses/30f5cfbf4aa0560c3d407c3e49806c6d84659baa"}}}}