Git development
 help / color / mirror / Atom feed
* `git push --porcelain` has no effect when deleting a ref which does not exist
@ 2026-08-05  7:19 Xavier Morel
  2026-08-05 16:30 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Morel @ 2026-08-05  7:19 UTC (permalink / raw)
  To: git

Using `push --delete --porcelain` with refs which are extant correctly 
outputs the relevant information in the documented format:

-	:refs/heads/<branch1>	[deleted]
-	:refs/heads/<branch2>	[deleted]

However doing the same with refs which don't exist on the remote (e.g. 
because of a concurrent deletion) has the error written out in 
human-targeted text:

error: unable to delete '<branch1>': remote ref does not exist
error: unable to delete '<branch2>': remote ref does not exist

I would have expected something along the lines of:

!	:refs/heads/<branch>	[remote failure]

which would be machine-readable as documented for the `--porcelain` 
flag. Was that intended or is it just something that fell through the 
cracks of code convolution?

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

end of thread, other threads:[~2026-08-07  6:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-05  7:19 `git push --porcelain` has no effect when deleting a ref which does not exist Xavier Morel
2026-08-05 16:30 ` Junio C Hamano
2026-08-07  6:51   ` Xavier Morel

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