Update git command to be able to check out tags, branches, commit hashes
What does this MR do?
This MR fixes an issue with the analyzer not being able to checkout commit refs against its copy of ruby-advisory-db.
What are the relevant issue numbers?
gitlab-org/gitlab#211977 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug See discussion -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Igor Frenkel