From 8653d286060b71b74b5a89ec7075617a76f81c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Lehmann?= Date: Tue, 3 Aug 2010 11:00:14 -0400 Subject: [PATCH] Reference bash explicitly in shebang lines On Solaris, where /bin/sh is actually sh, not bash, some expressions like $() are not supported. Git's own scripts on this machine are configured to use "#!/bin/bash". Change our shebang line to #!/usr/bin/env bash which should work almost everywhere. --- commit-msg | 2 +- pre-commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commit-msg b/commit-msg index e3b51de51..715837c4a 100755 --- a/commit-msg +++ b/commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copy or link this file as ".git/hooks/pre-commit". diff --git a/pre-commit b/pre-commit index 75c7f829d..928938200 100755 --- a/pre-commit +++ b/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copy or link this file as ".git/hooks/pre-commit".