lib/omnibus/fetchers/git_fetcher.rb in omnibus-1.2.0 vs lib/omnibus/fetchers/git_fetcher.rb in omnibus-1.3.0
- old
+ new
@@ -162,10 +162,10 @@
raise "Could not parse SHA reference"
end
commit_ref
rescue Exception => e
if retries >= 3
- ErrorReporter.new(e, self).explain("Failed to fetch git repository '#{@source[:git]}'")
+ ErrorReporter.new(e, self).explain("Failed to find any commits for the ref '#{ref}'")
raise
else
# Deal with github failing all the time :(
time_to_sleep = 5 * (2 ** retries)
retries += 1