Update stagit commit hook

main
Adrian Alic 5 months ago
parent e3f1d8ab45
commit 6f41c2f08d
  1. 15
      post-receive/stagit-update

@ -14,14 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if [ $# -eq 0 ]; then
echo "Usage: stagit-update <path/to/htmlroot>"
echo "Note: Make sure you're in a git repo of your root repo directory."
echo " This script assumes a single root repo folder without nested repos."
exit 1
fi
htmlroot=$(echo $1 | sed 's:/*$::')
# ATTENTION: This needs to be set by you
htmlroot="/root/html"
# +---------------------+
# | Flat Repo Hierarchy |
# +---------------------+
leaf=$(printf '%s\n' "${PWD##*/}")
REPO=$(pwd)
REPOROOT=$(dirname "$REPO")

Loading…
Cancel
Save