We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68337ee commit ed63a71Copy full SHA for ed63a71
1 file changed
action.yml
@@ -133,10 +133,10 @@ runs:
133
echo "Creating orphan 'coverage' branch..."
134
git checkout "${BRANCH}"
135
git checkout --orphan coverage
136
- # remove index entries (keep working tree)
137
- if [[ -n "$(git ls-files)" ]]; then
138
- git rm --cached $(git ls-files)
139
- fi
+ # Remove index entries (keep working tree) in a filename-safe way.
+ while IFS= read -r -d '' path; do
+ git rm --cached -- "$path"
+ done < <(git ls-files -z)
140
echo '# Coverage branch' > README.md
141
git add README.md
142
git commit -m 'Add README.md'
0 commit comments