summaryrefslogtreecommitdiff
path: root/git-deploy-cache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-deploy-cache.sh')
-rwxr-xr-xgit-deploy-cache.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/git-deploy-cache.sh b/git-deploy-cache.sh
index 8540cf3..759c3f8 100755
--- a/git-deploy-cache.sh
+++ b/git-deploy-cache.sh
@@ -1,22 +1,43 @@
#!/usr/bin/env bash
#
+# Copyright (C) 2015 Aaron Ball <nullspoon@iohq.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+
+#
# == Description
#
# This script deploys the given bare git repo and branch to a working location.
# It decides what needs to be deployed based on the variables received from a
# git post-receive hook via STDIN.
#
+# [STDIN]
# @param oldref SHA1 hash of commit being advanced from
# @param newref SHA1 hash of most recent git commit
# @param refname Git name for ref. This is used to derive the branch name
# commited to
#
+# @param $1 Path to the base path to deploy to
+#
#
# Sets up some handy variables for a git post-receive script to use.
#
-# == Variables
+# == Variables Provided
#
# REPOSITORY: Repository that was pushed to
# BRANCH: Name of the branch that was modified

Generated by cgit