Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add spec : update cached git repo should remove old cached version #1988

wants to merge 1 commit into from

3 participants


This is a failing spec for #1970

@josevalim, here is a first test, really nice to see how it was easy to write :)


This pull request fails (merged fc29f0e into 68bdb44).


This pull request fails (merged fc29f0e into 68bdb44).

I know and can't fix it :'(

@josevalim josevalim was assigned

Thanks, I assigned it to me and it will be taken care before the final release.

@josevalim josevalim closed this pull request from a commit
@josevalim josevalim Prune git and path directories inside vendor/cache, closes #1988
From this commit on, we add a .bundlecache file inside
each git/path directory in vendor/cache so we know it
came from bundler. This allow us to delete those specific
directories without messing with user's specific ones.
@josevalim josevalim closed this in 1bd97f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  spec/cache/git_spec.rb
3  spec/cache/git_spec.rb
@@ -66,6 +66,7 @@
bundle "#{cmd} --all"
bundled_app("vendor/cache/foo-1.0-#{ref}").should exist
+ bundled_app("vendor/cache/foo-1.0-#{old_ref}").should_not exist
FileUtils.rm_rf lib_path("foo-1.0")
run "require 'foo'"
@@ -121,4 +122,4 @@
should_be_installed "has_submodule 1.0"
Something went wrong with that request. Please try again.