We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45091f8 commit 68c3915Copy full SHA for 68c3915
1 file changed
t/test-lib.sh
@@ -1762,6 +1762,15 @@ Darwin)
1762
test_set_prereq GREP_STRIPS_CR
1763
test_set_prereq WINDOWS
1764
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1765
+ case "$($SHELL --help 2>&1)" in
1766
+ *BusyBox*)
1767
+ # Unlike the MSYS2 Bash, BusyBox does not translate /dev/null
1768
+ # to the Windows null device when spawning the native git.exe,
1769
+ # and the minimal CI SDK provides no /dev/null for it to open;
1770
+ # name nul directly so test_cmp (and --ignore-cr-at-eol) works.
1771
+ GIT_TEST_CMP="GIT_DIR=nul git diff --no-index --ignore-cr-at-eol --"
1772
+ ;;
1773
+ esac
1774
if ! type iconv >/dev/null 2>&1
1775
then
1776
iconv () {
0 commit comments