summaryrefslogtreecommitdiff
path: root/commit.d
diff options
context:
space:
mode:
Diffstat (limited to 'commit.d')
-rwxr-xr-xcommit.d/50vcs-commit6
1 files changed, 5 insertions, 1 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index c726167..da99d14 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -2,7 +2,11 @@
set -e
message="$1"
-hostname=`hostname -f 2>/dev/null || hostname`
+hostname=`hostname`
+dnsdomainname=`dnsdomainname 2>/dev/null || true`
+if [ -n "$dnsdomainname" ]; then
+ hostname="$hostname.$dnsdomainname"
+fi
USER=
if [ -n "$SUDO_USER" ]; then