diff options
author | Andy Lindeman <andy@lindeman.io> | 2014-07-19 15:08:28 -0400 |
---|---|---|
committer | Andy Lindeman <andy@lindeman.io> | 2014-07-19 15:08:28 -0400 |
commit | 00d15913220b25ebe55c581d557069d6833cf44b (patch) | |
tree | 9dd532764efa57b112d7f750b590ac26bbd16be3 /Rakefile | |
parent | 4fdae37e4294618084f652c99c0c06ba7663ac07 (diff) | |
download | my_new_personal_website-00d15913220b25ebe55c581d557069d6833cf44b.tar.xz my_new_personal_website-00d15913220b25ebe55c581d557069d6833cf44b.zip |
Fixes load path issues with ruby-based git credential helpers
Otherwise, we get errors like this (with boxen, e.g.):
```
/opt/boxen/bin/boxen-git-credential:23:in `require': cannot load such file -- boxen/config (LoadError)
from /opt/boxen/bin/boxen-git-credential:23:in `<main>'
Username for 'https://github.com':
```
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -253,7 +253,7 @@ multitask :push do puts "## Deploying branch to Github Pages " puts "## Pulling any updates from Github Pages " cd "#{deploy_dir}" do - system "git pull" + Bundler.with_clean_env { system "git pull" } end (Dir["#{deploy_dir}/*"]).each { |f| rm_rf(f) } Rake::Task[:copydot].invoke(public_dir, deploy_dir) @@ -265,7 +265,7 @@ multitask :push do puts "\n## Committing: #{message}" system "git commit -m \"#{message}\"" puts "\n## Pushing generated #{deploy_dir} website" - system "git push origin #{deploy_branch}" + Bundler.with_clean_env { system "git push origin #{deploy_branch}" } puts "\n## Github Pages deploy complete" end end |