summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
diff options
context:
space:
mode:
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-xcommit.d/50vcs-commit2
1 files changed, 1 insertions, 1 deletions
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