I have this repo which is basically a list of other repos. What I want to do is to run a script that loops over a list of urls and fetch information about the date of their last release (tag).
<for each url in my list>
git remote remove tmp
git remote add tmp https://url-to-another-repo.git
git fetch tmp master
git log tmp/master --tags="*" --max-count=1 --pretty="Last updated %ar"
<next url>
That works kinda ok but not the way I want. I am having trouble in getting git log to only fetch tags. Instead it also fetches the last commits.
When I clone the same repo
git clone https://url-to-another-repo.git
git log --tags="*" --max-count=1 --pretty="Last updated %ar"
It shows the right result - that is: only the last tagged commit.