git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git replace --graft does error checking too late
@ 2019-03-27 10:22 Andreas Schwab
  2019-03-27 13:11 ` Christian Couder
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2019-03-27 10:22 UTC (permalink / raw)
  To: git

When running `git replace --graft A B' where B is a non-commit (eg. a
tag) it displays an error, but creates the replace ref anyway.  I think
it should verify that B names a commit object before creating the ref.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

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

end of thread, other threads:[~2019-03-28  7:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 10:22 git replace --graft does error checking too late Andreas Schwab
2019-03-27 13:11 ` Christian Couder
2019-03-27 13:21   ` Christian Couder
2019-03-28  7:35     ` Christian Couder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).