Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the error message logged when omnibus failed to resolve refs to commits #81

Merged
merged 2 commits into from
Nov 22, 2013

Conversation

mumoshu
Copy link

@mumoshu mumoshu commented Nov 21, 2013

Hi,

Thanks for sharing this!

I doubt that omnibus emits an incorrect message when it fails to resolve refs(typically specified via version in config/software/foo.rb) to commit IDs.

I get "Failed to fetch git repository '#{@source[:git]}'", but what I think better is something like "Failed to find any commits for the ref '#{ref}'", since in this case omnibus did succeed to fetch.

This PR will fix the message while adding specs to GitFetcher to ensure that it work before and after the fix.

Regards,
Yusuke

@schisamo
Copy link
Contributor

👍 So awesome to see the test coverage also!

schisamo added a commit that referenced this pull request Nov 22, 2013
Fix the error message logged when omnibus failed to resolve refs to commits
@schisamo schisamo merged commit 8e0a8cd into chef:master Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants