mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
t1304: fall back to $USER if $LOGNAME is not defined
For some reason $LOGNAME is not set anymore for me after an upgrade from Ubuntu 11.04 to 11.10. Use $USER in such a case. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
703f05ad58
commit
ac2604cf5f
@ -25,6 +25,11 @@ else
|
||||
test_set_prereq SETFACL
|
||||
fi
|
||||
|
||||
if test -z "$LOGNAME"
|
||||
then
|
||||
LOGNAME=$USER
|
||||
fi
|
||||
|
||||
check_perms_and_acl () {
|
||||
test -r "$1" &&
|
||||
getfacl "$1" > actual &&
|
||||
|
Loading…
Reference in New Issue
Block a user