Git development
 help / color / mirror / Atom feed
* Bug!?: Refspec '+' should be same as '--force' but is not
@ 2026-09-15 15:06 André Kießling
  2026-09-15 16:41 ` Ben Knoble
  2026-09-15 19:34 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: André Kießling @ 2026-09-15 15:06 UTC (permalink / raw)
  To: git

Hi there, think I found a bug...

In https://git-scm.com/docs/git-push I find:
 > The + is optional and does the same thing as --force.

The fetch documentation refers to push for the details of <refspec> so I 
assume, the statement also holds for fetch refspecs.
However, this is not true:
When I run `git fetch origin --tags --force` it will force update tags 
that changed on remote (as expected) but will NOT delete local tags.
When I run `git fetch origin` with config set to `remote.origin.fetch = 
+refs/tags/*:refs/tags/*` it will delete my local tags as if prune was set.

I'm using Git 2.54.0.windows.1





Carneios GmbH

Am Borsigturm 64
13507 Berlin

Tel. +49 30 2332035-0
Fax +49 30 2332035-99

https://www.carneios.de
info@carneios.de

Geschäftsführer: Michael Giersch
Handelsregister: Charlottenburg HRB 138285
USt.-ID: DE 280 745 293



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-15 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15 15:06 Bug!?: Refspec '+' should be same as '--force' but is not André Kießling
2026-09-15 16:41 ` Ben Knoble
2026-09-15 19:34 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox