Skip to content

Commit

Permalink
fix(#536): 🐛 issue with comments within .templatesyncignore (#538)
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
  • Loading branch information
AndreasAugustin committed Jun 19, 2024
1 parent 525c669 commit aba0971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function handle_templatesyncignore() {
# -s is true if the file contains whitespaces
if [ -s "${template_sync_ignore_file_path}" ]; then
debug "unstage files from template sync ignore ${template_sync_ignore_file_path}"
< "${template_sync_ignore_file_path}" awk NF | xargs -r git reset --
sed '/^[[:blank:]]*#/d;s/#.*//' "${template_sync_ignore_file_path}" | awk NF | xargs -r git reset --

debug "clean untracked files"
git clean -df
Expand Down

0 comments on commit aba0971

Please sign in to comment.