Skip to content
Snippets Groups Projects
Commit 01e56e37 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-393: Use alias in lofar20rc.sh to install githooks

parent 1c023592
Branches
No related tags found
1 merge request!137L2SS-393: Use alias in lofar20rc.sh to install githooks
#!/bin/bash
git submodule update --init
......@@ -12,6 +12,10 @@
ABSOLUTE_PATH=$(realpath $(dirname ${BASH_SOURCE}))
export LOFAR20_DIR=${1:-$(realpath ${ABSOLUTE_PATH}/../..)}
if [ ! -f "${LOFAR20_DIR}/.git/hooks/post-checkout" ]; then
alias git="cp ${LOFAR20_DIR}/bin/update_submodules.sh ${LOFAR20_DIR}/.git/hooks/post-checkout; cp ${LOFAR20_DIR}/bin/update_submodules.sh ${LOFAR20_DIR}/.git/hooks/post-merge; unalias git; git"
fi
# This needs to be modified for a development environment.
# Example: ~/lofar2.0/tango
# The current setting is for a production environment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment