Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[replace tags] error would clobber existing tag #233

Closed
talset opened this issue Jan 4, 2019 · 4 comments
Closed

[replace tags] error would clobber existing tag #233

talset opened this issue Jan 4, 2019 · 4 comments

Comments

@talset
Copy link
Contributor

talset commented Jan 4, 2019

By using tag and replacing one with git tag -f raise the following git error

From github.com:talset/crappytest
 ! [rejected]        DEV        -> DEV  (would clobber existing tag)

How to reproduce:

git checkout bla
git tag -f DEV
git push origin DEV --force

git checkout foo
git tag -f DEV
git push origin DEV --force

What is done by the resource ?

git fetch --tags
From github.com:talset/crappytest
 ! [rejected]        DEV        -> DEV  (would clobber existing tag)

How to solve it ?

Add a -f flag

git fetch --tags -f
From github.com:talset/crappytest
 t [tag update]      DEV        -> DEV

I will make a PR for this

talset added a commit to talset/git-resource that referenced this issue Jan 4, 2019
Update git fetch with -f
  -f, --force           force overwrite of local reference
@vito vito closed this as completed in d9f6cc2 Jan 15, 2019
vito added a commit that referenced this issue Jan 15, 2019
fix #233 error would clobber existing tag
@mlorenzatiglb
Copy link

If it still happens do a yarn cache clean.

@adrianbona
Copy link

If it still happens do a yarn cache clean.

Oh my gosh, YES

@velidan
Copy link

velidan commented Feb 15, 2021

Thank you. This solution works

@vinnyA3
Copy link

vinnyA3 commented Apr 13, 2021

cache clean worked for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants