git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git replace --graft does error checking too late

From
Andreas Schwab <schwab@suse.de>
Date
Mar 27, 2019, 10:22 UTC
Message-ID
<mvmd0mcsjkf.fsf@suse.de>

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."
Next: Christian Couder
Message 1 of 4 in “git replace --graft does error checking too late”
  1. Andreas SchwabMar 27, 2019
  2. Christian CouderMar 27, 2019
  3. Christian CouderMar 27, 2019
  4. Christian CouderMar 28, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.