DeepSourceCorp / cli

Command line interface to DeepSource
https://deepsource.com
BSD 2-Clause "Simplified" License
50 stars 18 forks source link

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

Closed srijan-deepsource closed 1 year ago

srijan-deepsource commented 1 year ago

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.