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

hotfix: don't early exit with error if root is not a git dir #224

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

srijan-deepsource
Copy link
Contributor

@srijan-deepsource srijan-deepsource commented Aug 28, 2023

This broke reporting workflow in a case where an artifact was being reported from a docker container. Previously, Fetching HEAD manually was done in the end, after checking all env variables. In the last change, we were doing an early exit when the git rev-parse command threw an error, not allowing the flow to reach extracting git commit from env variable set in the docker container.

This change restores the previous workflow.

This broke reporting workflow in a case where artifact was being reported from a docker container.
Previously, Fetching head manually was done in the end, after checking all env variables. In the last change, we were still doing an early exit
when the git rev parse command threw an error, not allowing the flow to reach till extracting git commit from env variable set in docker container.

This change restores the previous workflow.
@sourya-deepsource sourya-deepsource merged commit 4edee8f into master Aug 28, 2023
1 check passed
@sourya-deepsource sourya-deepsource deleted the hotfix-no-git-docker branch August 28, 2023 11:00
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