Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes load path issues with ruby-based git credential helpers #1609

Merged
merged 1 commit into from

3 participants

@alindeman

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':

/cc: @dgoodlad

@alindeman alindeman 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';:
```
00d1591
@parkr parkr merged commit c977b91 into from
@parkr
Collaborator

Looks great, thanks @alindeman!

@dgoodlad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 19, 2014
  1. @alindeman

    Fixes load path issues with ruby-based git credential helpers

    alindeman authored
    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';:
    ```
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -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
Something went wrong with that request. Please try again.