Skip to content

Commit 667404e

Browse files
committed
Merge branch 'PR291'
2 parents dbb8158 + 38e2369 commit 667404e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ is to convert line endings in text files from CRLF to git's preferred LF:
133133
# $2 = Mercurial's hash of the file
134134
# $3 = "1" if Mercurial reports the file as binary, otherwise "0"
135135
136-
if [ "$3" == "1" ]; then cat; else dos2unix; fi
136+
if [ "$3" == "1" ]; then cat; else dos2unix -q; fi
137+
# -q option in call to dos2unix allows to avoid returning an
138+
# error code when handling non-ascii based text files (like UTF-16
139+
# encoded text files)
137140
-- End of crlf-filter.sh --
138141
```
139142

0 commit comments

Comments
 (0)