diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | git-deploy-cache.sh | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -79,3 +79,5 @@ The variables made available by this function are... * **FILES_D**: List of **D**eleted files * **FILES_E**: List of all files **E**xisting in the commit, modified or new. Does not include deleted files. +* **CURRENT_CACHE**: Current working cache directory (eg: + */<deploydir>/<repo>/<branch>*) diff --git a/git-deploy-cache.sh b/git-deploy-cache.sh index 759c3f8..35ddb26 100755 --- a/git-deploy-cache.sh +++ b/git-deploy-cache.sh @@ -125,6 +125,9 @@ function main { # Set up global enviro variables that will be of use later enviro_setup ${oldrev} ${newrev} ${refname} + # The current cache directory being used + export WORKING_CACHE=${deploy_base}/${REPOSITORY}/${BRANCH} + log "Deployment triggered by ${newrev}" # Deploy a working copy of the repo so we have something to work on |