add push-to-checkout git hook

This commit is contained in:
bretello 2024-06-14 17:58:07 +02:00
parent a55033ed26
commit d26763504b
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

3
push-to-checkout Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# checks out the received ref on push
git read-tree -u -m HEAD "$1"