lib/berkshelf/cookbook_source/git_location.rb in berkshelf-0.4.0.rc1 vs lib/berkshelf/cookbook_source/git_location.rb in berkshelf-0.4.0.rc2

- old
+ new

@@ -50,9 +50,10 @@ msg << " with branch '#{branch}'" if branch raise CookbookNotFound, msg end cb_path = File.join(destination, "#{self.name}-#{Git.rev_parse(tmp_clone)}") + FileUtils.rm_rf(cb_path) FileUtils.mv(tmp_clone, cb_path, force: true) cached = CachedCookbook.from_store_path(cb_path) validate_cached(cached)