Skip to content

Commit 1d61035

Browse files
authored
fix(#634):handle Windows line endings in .templatesyncignore file (#636)
1 parent 39e3574 commit 1d61035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sync_template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ function handle_templatesyncignore() {
435435
# -s is true if the file contains whitespaces
436436
if [ -s "${template_sync_ignore_file_path}" ]; then
437437
debug "unstage files from template sync ignore ${template_sync_ignore_file_path}"
438-
sed '/^[[:blank:]]*#/d;s/#.*//' "${template_sync_ignore_file_path}" | awk NF | xargs -r git reset --
438+
tr -d '\r' < "${template_sync_ignore_file_path}" | sed '/^[[:blank:]]*#/d;s/#.*//' | awk NF | xargs -r git reset --
439439

440440
debug "clean untracked files"
441441
git clean -df

0 commit comments

Comments
 (0)