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

Get commit hash from CI if failed to get it from Git #177

Merged
merged 2 commits into from
Mar 9, 2017

Conversation

sullerandras
Copy link
Contributor

This is fixing the issue that code coverage is not reported correctly when .git folder is not present.
Related issues:
command not found: git - #171
Feature - run on Codeship out of the box - #156
CodeClimate::TestReporter::Git doesn't use branch_from_git_or_ci - #115

@sullerandras sullerandras changed the title Get commit hash from CI first and fall back to Git Get commit hash from CI if failed to get it from Git Mar 6, 2017
@maxjacobson
Copy link
Contributor

@sullerandras Hi, and thanks so much for this PR! I really appreciate your help.

@maxjacobson maxjacobson merged commit 314826c into codeclimate:master Mar 9, 2017
maxjacobson added a commit that referenced this pull request Mar 9, 2017
maxjacobson added a commit that referenced this pull request Mar 9, 2017
@maxjacobson
Copy link
Contributor

This is released as v1.0.7

johnallen3d added a commit to telus-agcg/nib that referenced this pull request Mar 9, 2017
@pabloroz
Copy link

I think this still failing if git is not installed in the container, right?

@maxjacobson
Copy link
Contributor

@pabloroz My expectation is that it shouldn't fail when git is not installed. It may print out a warning to that effect, but the reporter should fall back to the values in the CI environment, if available. Please let us know if you're seeing something different.

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.

3 participants