From 51a2682158fe2ae7ca7283d2bf2addeedfd82460 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Jun 2009 16:29:32 -0400 Subject: Use hostname if hostname -f fails. Closes: #533295 --- 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 1f4ab03..687a2ed 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -2,7 +2,7 @@ set -e message="$1" -hostname=`hostname -f` +hostname=`hostname -f 2>/dev/null || hostname` if [ "$VCS" = git ] && [ -d .git ]; then if [ -n "$SUDO_USER" ]; then -- cgit v1.2.3