diff options
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 2 |
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 |