Fixing issue that tags are removed before they can be pushed#45
Fixing issue that tags are removed before they can be pushed#45CasperWA merged 1 commit intoCasperWA:masterfrom
Conversation
Neat - and indeed, the
I don't think this is the case, but I might definitely be wrong. The point of the tags option is to do an extra Edit: Looking into a bit of Git documentation (see "Sharing tags"), it seems the newly created tag shouldn't be pushed along with the commit, only if it's either explicitly pushed or
The |
Oh sorry, maybe I was a bit unclear with my previous statement. I only meant that the tags option wouldn't push the newly created tags as long as the -P option was still in there. Other than that, the tags option is of course far from obsolete and makes perfect sense.
Yeah, I'm quite sure it works that way.
Nice, thanks for taking the time to get that included! 👍 |
I ran into the issue that I created a new tag in my Github Action and when I want to push it (by specifying the tags: true) entry for your action, the line in entrypoint.sh that I edited in this PR fetches from origin and prunes all local tags that don't exist online as well. This kinda makes the whole option tags obsolete, as that seems to be overridden by this line.
If you find a nicer solution to actually be able to still push newly created tags, that's also fine, maybe by making this conditional on whether the
tagsflag was set or not, but this solution worked for me.