aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-01-19 19:33:51 +0000
committerwinter2025-01-19 19:33:51 +0000
commit2d9bd87fb1c565ee161f93219ce2533e8dbffe06 (patch)
tree030099baf7d17b3b25bc4916d101ce5239732a32
parent77ba95515ed32c1a209ae341b4f716dbcd46f2a6 (diff)
install update-version hook on post-merge
-rwxr-xr-xbin/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/init b/bin/init
index 61d5fdd..1a37399 100755
--- a/bin/init
+++ b/bin/init
@@ -9,9 +9,10 @@ fi
if [ -d .git ]; then
# seems likely we are running inside a git clone rather than an exported archive
- # install the hook so that version info is updated on every commit/checkout
+ # install the hook so that version info is updated on every commit/checkout/pull
ln -s ../../bin/update-version .git/hooks/post-commit
ln -s ../../bin/update-version .git/hooks/post-checkout
+ ln -s ../../bin/update-version .git/hooks/post-merge
# and run it now
bin/update-version
fi