From 029bf430efa727eed896c9a16c0d9645228daa41 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 31 Jul 2013 11:33:40 -0400 Subject: Fix hilarious typo hardcoding my name. Closes: #718425 --- commit.d/50vcs-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit.d/50vcs-commit') diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index bc40789..3a4c819 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -43,7 +43,7 @@ if [ "$VCS" = git ] && [ -d .git ]; then if [ -n "$USER" ]; then # Use user.name and user.email from the gitconfig belonging # to the user who became root. - USER_HOME="$(perl -e 'print ((getpwnam("joey"))[7])')" + USER_HOME="$(perl -e 'print ((getpwnam(shift()))[7])' "$USER")" if [ -n "$USER_HOME" ] && [ -e "$USER_HOME/.gitconfig" ]; then if [ -z "$GIT_AUTHOR_NAME" ]; then GIT_AUTHOR_NAME="$(git config -f "$USER_HOME/.gitconfig" user.name)" || true -- cgit v1.2.3