Skip to content

Commit 80188ac

Browse files
committed
Update the version extraction in pre-push hook
1 parent dc03250 commit 80188ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/pre-push

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
if [ "$(git branch --show-current)" = master ]; then
4-
MAIN=cmake-init/__main__.py
4+
MAIN=cmake-init/cmake_init.py
55
VERSION="v$(grep -oP '^__version__ = "\K\d(\.\d+){2}' "${MAIN}")"
66
if [ -n "$(git ls-remote --tags origin "${VERSION}")" ]; then
77
echo "${VERSION} already exists remotely, bump the version" >&2

0 commit comments

Comments
 (0)