From 2b3475ce92031ec7af5088b545f2c76ad7e3d167 Mon Sep 17 00:00:00 2001 From: Suhas Krishna Srivastava Date: Sat, 14 Dec 2024 12:56:00 +0530 Subject: [PATCH] Renamed to the correct hook `post-receive` is no longer valid for 2.4*+ version of git. Chaned the `post-receive` hook to `post-update` hook. --- book/10-git-internals/sections/transfer-protocols.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/10-git-internals/sections/transfer-protocols.asc b/book/10-git-internals/sections/transfer-protocols.asc index 44e6a39ad..50dbed243 100644 --- a/book/10-git-internals/sections/transfer-protocols.asc +++ b/book/10-git-internals/sections/transfer-protocols.asc @@ -23,7 +23,7 @@ $ git clone http://server/simplegit-progit.git ---- The first thing this command does is pull down the `info/refs` file. -This file is written by the `update-server-info` command, which is why you need to enable that as a `post-receive` hook in order for the HTTP transport to work properly: +This file is written by the `update-server-info` command, which is why you need to enable that as a `post-update` hook in order for the HTTP transport to work properly: [source] ----