Permalink
Browse files

Deal with strange systems that include the domain name in the hostnam…

…e, by stripping it. Closes: #600026
  • Loading branch information...
1 parent 004a68e commit 8a1d8da0cc4501872244b2b90058421738cd882a @joeyh joeyh committed Oct 20, 2010
Showing with 3 additions and 0 deletions.
  1. +1 −0 commit.d/50vcs-commit
  2. +2 −0 debian/changelog
View
@@ -22,6 +22,7 @@ else
fi
hostname=`hostname`
+hostname="${hostname%%.*}"
dnsdomainname=`dnsdomainname 2>/dev/null || true`
if [ -n "$dnsdomainname" ]; then
hostname="$hostname.$dnsdomainname"
View
@@ -6,6 +6,8 @@ etckeeper (0.50) UNRELEASED; urgency=low
git. Fixes #549354 for git, but not for other VCSs.
* Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting
the user to configure it in .gitconfig. Closes: #599749
+ * Deal with strange systems that include the domain name in the hostname,
+ by stripping it. Closes: #600026
-- Joey Hess <joeyh@debian.org> Wed, 22 Sep 2010 17:45:57 -0400

0 comments on commit 8a1d8da

Please sign in to comment.