lib/berkshelf/locations/git_location.rb in berkshelf-1.0.0.rc1 vs lib/berkshelf/locations/git_location.rb in berkshelf-1.0.0.rc2

- old
+ new

@@ -43,18 +43,18 @@ unless branch self.branch = ::Berkshelf::Git.rev_parse(tmp_clone) end unless File.chef_cookbook?(tmp_clone) - msg = "Cookbook '#{name}' not found at git: #{uri}" + msg = "Cookbook '#{name}' not found at git: #{uri}" 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) - + cached = CachedCookbook.from_store_path(cb_path) validate_cached(cached) set_downloaded_status(true) cached