Unable to access Git Tags

git

#1

I’m trying to fork some logic based on git tags. Unfortunately I am unable to access them. Here’s what I’m doing:

WA02C53FD56:Someproject timothy_dalbey$ git add --all && git commit -m “Testing tag parsing” && git tag “$RANDOM” && git tag "RANDOM" && git push origin master [master 66677a6] Testing tag parsing 2 files changed, 2 insertions(+) Counting objects: 5, done. Delta compression using up to 8 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 465 bytes | 0 bytes/s, done. Total 5 (delta 4), reused 0 (delta 0) To git@github.somesite.com:someorg/somerepo.git deca26d..66677a6 master -> master WA02C53FD56:Someproject timothy_dalbey git tag --points-at 66677a615327d03d6e8e5b223682a5875da1b369
25932
356

But in Circle the following does not work:

echo "$CIRCLE_TAG";

and neither does

git tag --points-at $CIRCLE_SHA1

However, I am able to get commit messages via

git log --format=oneline -n 1 $CIRCLE_SHA1

Based on comments I’ve come across from the interwebs, I’ve also added the following to the dependencies section of the circle.yml, to no result:

- git fetch --tags


#2