How does receive-pack and pre-receive hook works ?
- From
- Mahesh Vaidya <forvaidya@gmail.com>
- Date
- Jun 27, 2010, 02:24 UTC
- Message-ID
- <AANLkTinYRF2m95MU2c817bK6mfehPt_OMBH45R6laNUe@mail.gmail.com>
How does receive-pack and pre-receive hook works ?
I have added following in pre-recieve hook; all works fine. git rev-list --pretty d6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f ^a3fe19833480023b72350d6e56e939cbd0ba2c8b
I Would like know where does Git saves whatever I am pushing before exit 0 of this hook; Specifically how does it understand about 'd6d147f432869037a7ac8bdca3a2d5bc0cdc1e9f' which is not part of destination depot / repo.
Thx/ Mahesh.