summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xgit-deploy-cache.sh3
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index c342c5c..4da3326 100644
--- a/README.md
+++ b/README.md
@@ -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

Generated by cgit