diff options
author | Armin Kunaschik <megabreit@googlemail.com> | 2016-05-31 02:26:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-21 20:41:31 +0200 |
commit | d2addc3b96886bb4dee71ef36684c8010bc37d16 (patch) | |
tree | 97a777af5c24ae5cb83aaa36d838906fb7f9cd5c /t/t7800-difftool.sh | |
parent | Git 2.4.11 (diff) | |
download | git-d2addc3b96886bb4dee71ef36684c8010bc37d16.tar.xz git-d2addc3b96886bb4dee71ef36684c8010bc37d16.zip |
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 <megabreit@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7800-difftool.sh')
-rwxr-xr-x | t/t7800-difftool.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index ea35a0241c..cec3eafdfd 100755 --- a/t/t7800-difftool.sh +++ b/t/t7800-difftool.sh @@ -423,7 +423,7 @@ write_script .git/CHECK_SYMLINKS <<\EOF for f in file file2 sub/sub do echo "$f" - readlink "$2/$f" + ls -ld "$2/$f" | sed -e 's/.* -> //' done >actual EOF |