Re: git-push hook to update remote working copy safely
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 23, 2007, 18:32 UTC
- Message-ID
- <7v649s4tdk.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702231737300.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Don't you have any user interaction? I.e. if the remote working directory > is only ever changed by your hook, you can use what Junio sent. It is even > overkill for that purpose.
And it even has a bug (perhaps more, but I know of at least one).
The comparison after running merge-base should compare the merge base and the old commit object name.