Hello everyone, I am currently working on my 100 Days of DevOps challenge, but I’m stuck on Day 34 with a Git hooks problem. As you can see in the image, I did create the release tag, but I keep getting the same error message, and I have no idea how to solve it. Could someone please help me understand what I’m missing?
I put my post-update under bare repository folder under /opt/official.git/hooks/post-update
and here is my script
#!/usr/bin/bash
echo "Starting post-update hook"
for refname in "$@"
do
echo "Processing ref: $refname"
if [[ "$refname" == "refs/heads/master" ]]; then
echo "Creating tag for release"
TODAY=$(date +%F)
git tag -a "release-$TODAY" -m "Automated release tag for $TODAY"
fi
done
echo "Post-update hook completed"
The problem here is probably with the annotated tag (git tag -a), which the grader is not handling correctly. This is a known issue; we’re still trying to get the grader in a better state.
but the task still doesn’t pass. I’ve been stuck on this Git hook challenge (Day 34) for three days now, and I still can’t figure out what’s wrong.Any solution or workaround that I can apply?