Error fetching tags

6 views
Skip to first unread message

Peter Kronenberg

unread,
Oct 27, 2024, 1:02:52 PM10/27/24
to SmartGit
I was having a problem seeing a new tag that had been created.  Tried pull, fetch, etc from the GUI.  Finally from the command line, I did 'git fetch --tags' and it turned out the tag was a duplicate so it was being rejected.  Had to add '--force'.  But SmartGit was totally silent about the issue

U-1E70I9EZZ0BWU projects/cerfServer (development)$ git fetch --tags
warning: redirecting to https://gitlab.sh.nextgenwaterprediction.com/NGWPC/nwm-ngen/ngencerf-server.git/
From https://gitlab.sh.nextgenwaterprediction.com/NGWPC/nwm-ngen/ngencerf-server
 ! [rejected]        rc-0.2.0   -> rc-0.2.0  (would clobber existing tag)
U-1E70I9EZZ0BWU projects/cerfServer (development)$ git fetch --tags --force
warning: redirecting to https://gitlab.sh.nextgenwaterprediction.com/NGWPC/nwm-ngen/ngencerf-server.git/
From https://gitlab.sh.nextgenwaterprediction.com/NGWPC/nwm-ngen/ngencerf-server
 t [tag update]      rc-0.2.0   -> rc-0.2.0
U-1E70I9EZZ0BWU projects/cerfServer (development)$

syntevo Support

unread,
Oct 28, 2024, 8:51:10 AM10/28/24
to smar...@googlegroups.com
> I was having a problem seeing a new tag that had been created. Tried pull,
> fetch, etc from the GUI. Finally from the command line, I did 'git fetch
> --tags' and it turned out the tag was a duplicate so it was being
> rejected. Had to add '--force'. But SmartGit was totally silent about the
> issue

In the Pull dialog, under More options, did you select "Update existing and fetch new tags"? This is what "--force" does.

--
Best regards,
Marc Strapetz
syntevo GmbH
https://www.syntevo.com
> --
> You received this message because you are subscribed to the Google Groups
> "SmartGit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> smartgit+u...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/smartgit/8cdf3062-1ed4-4e6a-be99-faabac5d9aadn%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages