{"thread":{"id":"15188","subject":"pre-commit hook, non-zero exit status and dangling objects","startedAt":"2008-08-24T10:57:52Z","lastAt":"2008-08-25T13:35:27Z","messageCount":2,"participants":["Сергей Шарыбин","Tommi Virtanen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"88359","messageId":"48B13EB0.8050704@school9.perm.ru","threadId":"15188","inReplyTo":null,"subject":"pre-commit hook, non-zero exit status and dangling objects","fromName":"Сергей Шарыбин","fromEmail":"nazgul@school9.perm.ru","sentAt":"2008-08-24T10:57:52Z","receivedAt":"2008-08-24T10:57:52Z","isPatch":false,"sender":{"key":"nazgul@school9.perm.ru","avatar":null},"body":"Hi,\n\nAfter pre-commit returned non-zero status, I could see new dangling \nobjects in my repo. I think it's not normal, because pre-commit is often \nused for checking formation of source files and after changing this \nfiles, hash of object will be also changed and even after successfull \ncommit dangling object will be still alive.\n\n--\nWith best regards, Sergey I. Sharybin\n"},{"id":"88454","messageId":"20080825133527.GD14930@eagain.net","threadId":"15188","inReplyTo":"48B13EB0.8050704@school9.perm.ru","subject":"Re: pre-commit hook, non-zero exit status and dangling objects","fromName":"Tommi Virtanen","fromEmail":"tv@eagain.net","sentAt":"2008-08-25T13:35:27Z","receivedAt":"2008-08-25T13:35:27Z","isPatch":false,"sender":{"key":"tv@debian.org","avatar":null},"body":"On Sun, Aug 24, 2008 at 04:57:52PM +0600, Сергей Шарыбин wrote:\n> After pre-commit returned non-zero status, I could see new dangling  \n> objects in my repo. I think it's not normal, because pre-commit is often  \n> used for checking formation of source files and after changing this  \n> files, hash of object will be also changed and even after successfull  \n> commit dangling object will be still alive.\n\nYou also get dangling objects by running git add. There's no harm in\nthem, they will be cleaned up automatically.\n\n-- \n:(){ :|:&};:\n"}]}