{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/apcera/util/pulls/8","id":37847871,"html_url":"https://github.com/apcera/util/pull/8","diff_url":"https://github.com/apcera/util/pull/8.diff","patch_url":"https://github.com/apcera/util/pull/8.patch","issue_url":"https://api.github.com/repos/apcera/util/issues/8","number":8,"state":"closed","locked":false,"title":"Improves handling when Tar is pointed directly at a file.","user":{"login":"krobertson","id":1809,"avatar_url":"https://avatars.githubusercontent.com/u/1809?v=3","gravatar_id":"","url":"https://api.github.com/users/krobertson","html_url":"https://github.com/krobertson","followers_url":"https://api.github.com/users/krobertson/followers","following_url":"https://api.github.com/users/krobertson/following{/other_user}","gists_url":"https://api.github.com/users/krobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/krobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krobertson/subscriptions","organizations_url":"https://api.github.com/users/krobertson/orgs","repos_url":"https://api.github.com/users/krobertson/repos","events_url":"https://api.github.com/users/krobertson/events{/privacy}","received_events_url":"https://api.github.com/users/krobertson/received_events","type":"User","site_admin":false},"body":"This addresses a bug (#ENGT-1779) where an invalid tarball was created when\r\ntarhelper.NewTar is pointed directly at a file rather than a directory.\r\nPreviously, it would create a tarball with the file just fine, but the file in\r\nthe tarball would be named \".\".\r\n\r\nWhen then untaring the file, it would simply not work too well. If the\r\nNewUntar path already existed, it would error, or if it didn't exist, create\r\nthe target but the caller is often expecting a path, while it would create it\r\nas a file.\r\n\r\nThis change improves the handling, where when it is pointed at a file, it will\r\ntar just the file, but preserve its filename as the entry, and when the same\r\nfile is untarred, the target would be a path and it would contain the\r\nspecified file.\r\n\r\n@alextoombs @klobucar ","created_at":"2015-06-16T22:16:08Z","updated_at":"2015-06-18T18:21:02Z","closed_at":"2015-06-18T18:21:02Z","merged_at":"2015-06-18T18:21:02Z","merge_commit_sha":"06af3fbcc064b4f7fe5b0c65c5862c6d198b2917","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apcera/util/pulls/8/commits","review_comments_url":"https://api.github.com/repos/apcera/util/pulls/8/comments","review_comment_url":"https://api.github.com/repos/apcera/util/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apcera/util/issues/8/comments","statuses_url":"https://api.github.com/repos/apcera/util/statuses/81c4a0d096f1c36702e677fabc56c57cad29f418","head":{"label":"apcera:tar-target-as-file","ref":"tar-target-as-file","sha":"81c4a0d096f1c36702e677fabc56c57cad29f418","user":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"repo":{"id":35003310,"name":"util","full_name":"apcera/util","owner":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apcera/util","description":"Apcera Util","fork":false,"url":"https://api.github.com/repos/apcera/util","forks_url":"https://api.github.com/repos/apcera/util/forks","keys_url":"https://api.github.com/repos/apcera/util/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apcera/util/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apcera/util/teams","hooks_url":"https://api.github.com/repos/apcera/util/hooks","issue_events_url":"https://api.github.com/repos/apcera/util/issues/events{/number}","events_url":"https://api.github.com/repos/apcera/util/events","assignees_url":"https://api.github.com/repos/apcera/util/assignees{/user}","branches_url":"https://api.github.com/repos/apcera/util/branches{/branch}","tags_url":"https://api.github.com/repos/apcera/util/tags","blobs_url":"https://api.github.com/repos/apcera/util/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apcera/util/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apcera/util/git/refs{/sha}","trees_url":"https://api.github.com/repos/apcera/util/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apcera/util/statuses/{sha}","languages_url":"https://api.github.com/repos/apcera/util/languages","stargazers_url":"https://api.github.com/repos/apcera/util/stargazers","contributors_url":"https://api.github.com/repos/apcera/util/contributors","subscribers_url":"https://api.github.com/repos/apcera/util/subscribers","subscription_url":"https://api.github.com/repos/apcera/util/subscription","commits_url":"https://api.github.com/repos/apcera/util/commits{/sha}","git_commits_url":"https://api.github.com/repos/apcera/util/git/commits{/sha}","comments_url":"https://api.github.com/repos/apcera/util/comments{/number}","issue_comment_url":"https://api.github.com/repos/apcera/util/issues/comments{/number}","contents_url":"https://api.github.com/repos/apcera/util/contents/{+path}","compare_url":"https://api.github.com/repos/apcera/util/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apcera/util/merges","archive_url":"https://api.github.com/repos/apcera/util/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apcera/util/downloads","issues_url":"https://api.github.com/repos/apcera/util/issues{/number}","pulls_url":"https://api.github.com/repos/apcera/util/pulls{/number}","milestones_url":"https://api.github.com/repos/apcera/util/milestones{/number}","notifications_url":"https://api.github.com/repos/apcera/util/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apcera/util/labels{/name}","releases_url":"https://api.github.com/repos/apcera/util/releases{/id}","created_at":"2015-05-03T22:41:32Z","updated_at":"2015-05-08T18:15:11Z","pushed_at":"2015-06-18T18:21:02Z","git_url":"git://github.com/apcera/util.git","ssh_url":"git@github.com:apcera/util.git","clone_url":"https://github.com/apcera/util.git","svn_url":"https://github.com/apcera/util","homepage":null,"size":581,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":5,"default_branch":"master"}},"base":{"label":"apcera:master","ref":"master","sha":"7621d9f8d22d60e2451e530abec5f2c2ecaf8e1c","user":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"repo":{"id":35003310,"name":"util","full_name":"apcera/util","owner":{"login":"apcera","id":1637964,"avatar_url":"https://avatars.githubusercontent.com/u/1637964?v=3","gravatar_id":"","url":"https://api.github.com/users/apcera","html_url":"https://github.com/apcera","followers_url":"https://api.github.com/users/apcera/followers","following_url":"https://api.github.com/users/apcera/following{/other_user}","gists_url":"https://api.github.com/users/apcera/gists{/gist_id}","starred_url":"https://api.github.com/users/apcera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apcera/subscriptions","organizations_url":"https://api.github.com/users/apcera/orgs","repos_url":"https://api.github.com/users/apcera/repos","events_url":"https://api.github.com/users/apcera/events{/privacy}","received_events_url":"https://api.github.com/users/apcera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apcera/util","description":"Apcera Util","fork":false,"url":"https://api.github.com/repos/apcera/util","forks_url":"https://api.github.com/repos/apcera/util/forks","keys_url":"https://api.github.com/repos/apcera/util/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apcera/util/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apcera/util/teams","hooks_url":"https://api.github.com/repos/apcera/util/hooks","issue_events_url":"https://api.github.com/repos/apcera/util/issues/events{/number}","events_url":"https://api.github.com/repos/apcera/util/events","assignees_url":"https://api.github.com/repos/apcera/util/assignees{/user}","branches_url":"https://api.github.com/repos/apcera/util/branches{/branch}","tags_url":"https://api.github.com/repos/apcera/util/tags","blobs_url":"https://api.github.com/repos/apcera/util/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apcera/util/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apcera/util/git/refs{/sha}","trees_url":"https://api.github.com/repos/apcera/util/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apcera/util/statuses/{sha}","languages_url":"https://api.github.com/repos/apcera/util/languages","stargazers_url":"https://api.github.com/repos/apcera/util/stargazers","contributors_url":"https://api.github.com/repos/apcera/util/contributors","subscribers_url":"https://api.github.com/repos/apcera/util/subscribers","subscription_url":"https://api.github.com/repos/apcera/util/subscription","commits_url":"https://api.github.com/repos/apcera/util/commits{/sha}","git_commits_url":"https://api.github.com/repos/apcera/util/git/commits{/sha}","comments_url":"https://api.github.com/repos/apcera/util/comments{/number}","issue_comment_url":"https://api.github.com/repos/apcera/util/issues/comments{/number}","contents_url":"https://api.github.com/repos/apcera/util/contents/{+path}","compare_url":"https://api.github.com/repos/apcera/util/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apcera/util/merges","archive_url":"https://api.github.com/repos/apcera/util/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apcera/util/downloads","issues_url":"https://api.github.com/repos/apcera/util/issues{/number}","pulls_url":"https://api.github.com/repos/apcera/util/pulls{/number}","milestones_url":"https://api.github.com/repos/apcera/util/milestones{/number}","notifications_url":"https://api.github.com/repos/apcera/util/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apcera/util/labels{/name}","releases_url":"https://api.github.com/repos/apcera/util/releases{/id}","created_at":"2015-05-03T22:41:32Z","updated_at":"2015-05-08T18:15:11Z","pushed_at":"2015-06-18T18:21:02Z","git_url":"git://github.com/apcera/util.git","ssh_url":"git@github.com:apcera/util.git","clone_url":"https://github.com/apcera/util.git","svn_url":"https://github.com/apcera/util","homepage":null,"size":581,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apcera/util/pulls/8"},"html":{"href":"https://github.com/apcera/util/pull/8"},"issue":{"href":"https://api.github.com/repos/apcera/util/issues/8"},"comments":{"href":"https://api.github.com/repos/apcera/util/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/apcera/util/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/apcera/util/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apcera/util/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/apcera/util/statuses/81c4a0d096f1c36702e677fabc56c57cad29f418"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"krobertson","id":1809,"avatar_url":"https://avatars.githubusercontent.com/u/1809?v=3","gravatar_id":"","url":"https://api.github.com/users/krobertson","html_url":"https://github.com/krobertson","followers_url":"https://api.github.com/users/krobertson/followers","following_url":"https://api.github.com/users/krobertson/following{/other_user}","gists_url":"https://api.github.com/users/krobertson/gists{/gist_id}","starred_url":"https://api.github.com/users/krobertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krobertson/subscriptions","organizations_url":"https://api.github.com/users/krobertson/orgs","repos_url":"https://api.github.com/users/krobertson/repos","events_url":"https://api.github.com/users/krobertson/events{/privacy}","received_events_url":"https://api.github.com/users/krobertson/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":46,"deletions":2,"changed_files":2}}