mirror of
https://github.com/marian-nmt/marian.git
synced 2024-12-13 15:06:51 +03:00
93af06e9c7
they change.
14 lines
431 B
Bash
14 lines
431 B
Bash
#!/bin/bash
|
|
# from https://gist.github.com/digitaljhelms/f74eaf56835262d6bf3f
|
|
echo "[post rewrite hook: $1]"
|
|
|
|
# quick script to call "git submodule update" automatically if the
|
|
# .gitmodules file is changed
|
|
|
|
changedfiles=( `git diff-tree --no-commit-id --name-only HEAD@{1} HEAD` )
|
|
|
|
if [[ "${changedfiles[*]}" =~ ".gitmodules" ]]; then
|
|
echo "initializing & updating submodule(s)"
|
|
git submodule update --init --recursive
|
|
fi
|