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

2 messages from 2008-08-24 to 2008-08-25. Participants: Сергей Шарыбин, Tommi Virtanen.
Thread: https://gitlist.dev/t/15188

## Сергей Шарыбин, 2008-08-24 10:57

Subject: pre-commit hook, non-zero exit status and dangling objects
Message-ID: <48B13EB0.8050704@school9.perm.ru>
URL: https://gitlist.dev/e/48B13EB0.8050704%40school9.perm.ru

```
Hi,

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.

--
With best regards, Sergey I. Sharybin

```

## Tommi Virtanen, 2008-08-25 13:35

Subject: Re: pre-commit hook, non-zero exit status and dangling objects
Message-ID: <20080825133527.GD14930@eagain.net>
URL: https://gitlist.dev/e/20080825133527.GD14930%40eagain.net
In-Reply-To: <48B13EB0.8050704@school9.perm.ru>

```
On Sun, Aug 24, 2008 at 04:57:52PM +0600, Сергей Шарыбин wrote:
> 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.

-- 
:(){ :|:&};:

```
