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

rejected updates/pushes can be found on remote

From
RBRichard Bronosky <richard@bronosky.com>
Date
Aug 9, 2010, 04:54 UTC
Message-ID
<AANLkTingxD_VTpmMZ+u=KXtY16DjpksxmGGKuO0B219q@mail.gmail.com>

I don't know if this is evil or not. I just find it interesting. If you have and update hook on the remote that returns non-zero, rejecting a push, you can later find the hash (on the remote). I'm glad it get to the remote because I do "git diff --name-only $2 $3" to decide whether or not to accept. But, I wonder if most people are aware that it hangs around until it is garbage collected. This could potentially be an attack vector, or at least a liability. (Imagine some IP troll uploading their code to you and subpoenaing your server.)

-- 
.!# RichardBronosky #!.
Message 1 of 1 in “rejected updates/pushes can be found on remote”
  1. Richard BronoskyAug 9, 2010

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.