Skip to content

Commit 03d2ee3

Browse files
authored
fix(scripts): pre-push-hook (#55)
1 parent d1f4334 commit 03d2ee3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/pre-push-hook.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ VALIDATE_SCRIPT="$PROJECT_ROOT/scripts/validate-version.sh"
1313
while read local_ref local_oid remote_ref remote_oid; do
1414
# Check if this is a tag reference
1515
if [[ "$local_ref" =~ ^refs/tags/ ]]; then
16-
16+
tag_name="${local_ref#refs/tags/}"
1717

1818
# Validate that versions match before allowing tag push
1919
if [[ -f "$VALIDATE_SCRIPT" ]]; then
@@ -49,4 +49,3 @@ while read local_ref local_oid remote_ref remote_oid; do
4949
done
5050

5151
exit 0
52-

0 commit comments

Comments
 (0)