Fix failing pipeline when file has spaces
When there's a filename with spaces in hosted/
, it causes the pipeline to fail. Example:
- File:
hosted/gitlab-elements-spec-previews/assets/Group 3.png
- Failed pipeline: https://gitlab.com/gitlab-org/gitlab-design/-/jobs/53506935
It seems to fail because git log --name-only -1 --format=
is not enclosed in quotes. I've tried fixing this by having
"`git log --name-only -1 --format=`"
but this led to the following grep
not working.
To try to remedy this, I've deleted the file with spaces (referenced above) in this commit: 609ccefe
Edited by Pedro Moreira da Silva