summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13cc4c8)
raw | patch | inline | side by side (parent: 13cc4c8)
author | Arjen Laarhoven <arjen@yaph.org> | |
Thu, 16 Aug 2007 22:02:17 +0000 (00:02 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 16 Aug 2007 22:32:46 +0000 (15:32 -0700) |
The t1301-shared-repo.sh testscript uses /usr/bin/stat to get the file
mode, which isn't portable. Implement the test in shell using 'ls' as
shown by Junio.
Signed-off-by: Arjen Laarhoven <arjen@yaph.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mode, which isn't portable. Implement the test in shell using 'ls' as
shown by Junio.
Signed-off-by: Arjen Laarhoven <arjen@yaph.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1301-shared-repo.sh | patch | blob | history |
diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh
index bb5f30220ac96585d54e7b258bbbabcc16e1a551..6bfe19a4e5e8a22bfd286636e62c0c2d5cd56846 100755 (executable)
--- a/t/t1301-shared-repo.sh
+++ b/t/t1301-shared-repo.sh
git commit -m a1 &&
umask 0277 &&
git update-server-info &&
- test 444 = $(stat -c %a .git/info/refs)
+ actual="$(ls -l .git/info/refs)" &&
+ case "$actual" in
+ -r--r--r--*)
+ : happy
+ ;;
+ *)
+ echo Oops, .git/info/refs is not 0444
+ false
+ ;;
+ esac
'
test_done