I'm trying to create a script/program to automate my build process. My main goal is to generate a .zip file based on a commit from git. I'm using git diff
for that, to output the list of files changed in this commit, I'm using the following command:
git --no-pager diff --no-renames --name-only --diff-filter=ACM <commit_id>
The problem is when the filename or folder has some portuguese especial chars, they're returned like codes. For Instance, I have a folder called :
db/alterações/2020-04-30.sql
and its returned like that in the list:
db/altera\303\247\303\265es/2020-04-30.sql
How can I make git return the special chars instead of theses codes?