Skip to contentSkip to conversation

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

DISCUSSION Сергей Шарыбин 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 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.

Signature · 1 line
:(){ :|:&};: