Skip to content

Commit d2addc3

Browse files
megabreitgitster
authored andcommitted
t7800: readlink may not be available
The readlink(1) command is not available on all platforms (notably not on AIX and HP-UX) and can be replaced in this test with the "workaround" ls -ld <name> | sed -e 's/.* -> //' This is no universal readlink replacement but works in the controlled test environment well enough. Signed-off-by: Armin Kunaschik <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7654286 commit d2addc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7800-difftool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ write_script .git/CHECK_SYMLINKS <<\EOF
423423
for f in file file2 sub/sub
424424
do
425425
echo "$f"
426-
readlink "$2/$f"
426+
ls -ld "$2/$f" | sed -e 's/.* -> //'
427427
done >actual
428428
EOF
429429

0 commit comments

Comments
 (0)