From e4746f30ebc0f40b60e8dc8aaa7fd279d57b62da Mon Sep 17 00:00:00 2001 From: Brian Fehrle Date: Tue, 11 Feb 2014 11:50:13 -0700 Subject: [PATCH] updated the REPO variable so it has the parent dir of .git, not .git (messages in hipchat said the repo was '.git') --- hipchat-post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipchat-post-receive b/hipchat-post-receive index 209f2e6..5f86f11 100755 --- a/hipchat-post-receive +++ b/hipchat-post-receive @@ -5,7 +5,7 @@ read OLDREV NEWREV REFNAME # Find out basic variables GIT_EXEC=${GIT_EXEC:-`which git`} -REPO=${REPO:-`basename $PWD`} +REPO=${REPO:-$(basename $(dirname $PWD))} HIPCHAT_COLOR=${HIPCHAT_COLOR:-"yellow"} # User is commiter of either last or first commit