From aae9ed4632cfeee48c83b3a78e1782e3c4feea71 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Fri, 13 Jan 2012 17:41:51 +0800 Subject: [PATCH] Allow use of git_update_travis_status() function outside of git_index --batch-cmd --- lib/git/tools.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git/tools.sh b/lib/git/tools.sh index dfdb007..ea08e02 100644 --- a/lib/git/tools.sh +++ b/lib/git/tools.sh @@ -125,6 +125,7 @@ fi # */2 * * * * /bin/bash -c '. /home/YOUR_USERNAME/.bashrc && git_index --rebuild && NOCD=true git_index --batch-cmd git_update_travis_status' # git_update_travis_status() { + if [ -z "$base_path" ]; then local base_path=$(pwd); fi if [ -e "$base_path/.travis.yml" ]; then if type ruby > /dev/null 2>&1 && type travis > /dev/null 2>&1; then # Only use slug from origin