Skip to content

Instantly share code, notes, and snippets.

View sethfri's full-sized avatar

Seth Friedman sethfri

  • Stripe
View GitHub Profile
@sethfri
sethfri / gist:10809967
Last active August 29, 2015 13:59
Pruning Branch Problems

Steps to Reproduce

  1. Set up a Git repo that is connected to a GitHub remote called origin
  2. $ git checkout -b feature
  3. $ git push -u origin feature
  4. Make changes
  5. Open a Pull Request on GitHub to merge in changes of feature
  6. Merge in changes, and then delete the feature branch through GitHub's UI
  7. Back on the local machine: $ git remote prune origin (feature is allegedly pruned according to the response)
  8. $ git branch
Trying to just run `bundle install`. I expected it to update/install all of my gems. Instead, it emitted the following backtrace:
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13 (Errno::EACCES)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileut