Skip to content

Commit

Permalink
fix(#510): 🐛 .templatesyncignore issue with pathspec git reset
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 Mar 27, 2024
1 parent 05ffe8a commit 671b176
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 @@ -358,7 +358,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}"
git reset --pathspec-from-file="${template_sync_ignore_file_path}"
< "${template_sync_ignore_file_path}" awk NF | xargs -r git reset --

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

0 comments on commit 671b176

Please sign in to comment.