Skip to content
Snippets Groups Projects
Commit 1e3a1c21 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-393-automatic-submodule-sync' into 'master'

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

Closes L2SS-393

See merge request !137
parents ea940bc6 01e56e37
No related branches found
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.
# In case you run multiple Docker networks on the same host in parallel, you need to specify a unique
# network name for each of them.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment