Re: [PATCH v2 2/2] diff --no-index tests: test mode normalization
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 22, 2021, 19:22 UTC
- Message-ID
- <xmqqsg4n56zm.fsf@gitster.g>
- In-Reply-To
- <a1ab6a323f2e0aeed781a95d286740d3013ff5f0.1616366036.git.avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> +test_expect_success POSIXPERM,SYMLINKS 'diff --no-index normalizes: mode not like git mode (symlink)' ' > + ln -s y z && > + X_OID=$(git hash-object --stdin <x) && > + Z_OID=$(echo -n y | git hash-object --stdin) &&
s/echo -n/printf/
t4053-diff-no-index.sh:185: error: echo with option is not portable (use printf): Z_OID=$(echo -n y | git hash-object --stdin) && gmake[1]: *** [Makefile:95: test-lint-shell-syntax] Error 1 gmake[1]: Leaving directory '/home/jch/w/buildfarm/jch/t' gmake: *** [Makefile:2855: test] Error 2