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

Re: pre-commit hook, non-zero exit status and dangling objects

From
TVTommi Virtanen <tv@eagain.net>
Date
Aug 25, 2008, 13:35 UTC
Message-ID
<20080825133527.GD14930@eagain.net>
In-Reply-To
<48B13EB0.8050704@school9.perm.ru>
On Sun, Aug 24, 2008 at 04:57:52PM +0600, Сергей Шарыбин wrote:
Show 5 quoted lines
> After pre-commit returned non-zero status, I could see new dangling  
> objects in my repo. I think it's not normal, because pre-commit is often  
> used for checking formation of source files and after changing this  
> files, hash of object will be also changed and even after successfull  
> commit dangling object will be still alive.

You also get dangling objects by running git add. There's no harm in them, they will be cleaned up automatically.

-- 
:(){ :|:&};:
Previous: Сергей Шарыбин
Message 2 of 2 in “pre-commit hook, non-zero exit status and dangling objects”
  1. Сергей ШарыбинAug 24, 2008
  2. Tommi VirtanenAug 25, 2008

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.