Skip to content

Commit d0071db

Browse files
authored
Match git hash to maven plugin (#9)
1 parent 71a61c8 commit d0071db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate-parsers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ echo "Debug: Captured Generator Version: '$GENERATOR_VERSION'"
106106

107107
echo "Debug: Attempting to get git hash..."
108108
# Use N/A as default
109-
GENERATOR_GIT_HASH=$(cd "$GENERATOR_CORE_DIR" && git rev-parse --short HEAD 2>/dev/null || echo "N/A")
109+
GENERATOR_GIT_HASH=$(cd "$GENERATOR_CORE_DIR" && git rev-parse --short=10 HEAD 2>/dev/null || echo "N/A")
110110
GIT_EXIT_CODE=$?
111111
echo "Debug: git rev-parse exit code: $GIT_EXIT_CODE"
112112
# Trim potential whitespace/newlines

0 commit comments

Comments
 (0)