diff options
Diffstat (limited to 'tools/test-common.sh')
-rw-r--r-- | tools/test-common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-common.sh b/tools/test-common.sh index 1accdc0442..17ac66b57a 100644 --- a/tools/test-common.sh +++ b/tools/test-common.sh @@ -152,7 +152,7 @@ function ws_exit_error() { echo -e "\n" >> $TMP_DIR/${ERR_FILE}.header - if [ -d .git ] ; then + if [ -d ${GIT_DIR:-.git} ] ; then echo -e "\nGit commit" >> $TMP_DIR/${ERR_FILE}.header git log -1 >> $TMP_DIR/${ERR_FILE}.header fi |