diff --git a/changelog.md b/changelog.md index aa0875fb..5247a461 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,10 @@ Roots Changelog Beginning with version `2.0.0`, we will be maintaining a changelog to show what changes have been implemented each release. We hope that this will help roots users to stay informed about the updates being made and avoid breakage when a major or minor version bump occurs. +### 2.0.6 +(released 09/25/2013) +- fix permissions error with roots custom templates + ### 2.0.5 (released 08/15/2013) - github pages deployer is now very reliable diff --git a/lib/commands/new.js b/lib/commands/new.js index 2022cf4d..a9596e98 100644 --- a/lib/commands/new.js +++ b/lib/commands/new.js @@ -97,16 +97,18 @@ function update_git_repo(tmpl_path){ if (pull_command.code === 0) { return tmpl_path } else { - return { error: pull_command } + return { error: pull_command.output } } } function clone_git_repo(tmpl, tmpl_path){ + // need to chown new in order to copy out correctly + var chown_command = shell.exec('sudo chown `whoami` ' + path.join(__dirname, '../../templates/new')); var clone_command = shell.exec('git clone ' + tmpl + ' ' + tmpl_path, { silent: true }); if (clone_command.code === 0) { return tmpl_path } else { - return { error: clone_command } + return { error: clone_command.output } } } diff --git a/package.json b/package.json index c73b58cf..315fcc66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "roots", - "version": "2.0.5", + "version": "2.0.6", "description": "roots is a toolbox for building simple, beautiful, and efficient products for the web", "keywords": [ "front-end",