Correction in post-update.sample hook
Hi,
I believe the post-update.sample hook has a little spelling mistake, "git-update-server-info" is now "git update-server-info" without the dash. The attached patch fixes it throughout the tree.
Thanks,
Henry
Quoted 1 line
From
e0b074ac5b8227bf9d0eaef94a631a610c9d9e44Mon Sep 17 00:00:00 2001
From: Henry Gebhardt <[email protected]>
Date: Thu, 18 Mar 2010 13:42:49 +0100
Subject: [PATCH] git-update-server-info -> git update-server-info trivial fixes
The command git-update-server-info no longer exists as such. I noticed this when using the post-update.sample hook for publishing via http.
Signed-off-by Henry Gebhardt <[email protected]>
--- Documentation/config.txt | 2 +- Documentation/howto/rebuild-from-update-hook.txt | 2 +- contrib/examples/git-clone.sh | 2 +- git-repack.sh | 2 +- templates/hooks--post-update.sample | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
Documentation/config.txt +1 -1
@@ -1462,7 +1462,7 @@ receive.denyNonFastForwards:: set when initializing a shared repository. receive.updateserverinfo:: - If set to true, git-receive-pack will run git-update-server-info + If set to true, git-receive-pack will run git update-server-info after receiving data from git-push and updating refs. remote.<name>.url::
Documentation/howto/rebuild-from-update-hook.txt +1 -1
@@ -59,7 +59,7 @@ like this: echo $HOME/doc-git/dododoc.sh | at now ;; esac - exec git-update-server-info + exec git update-server-info EOF $ chmod +x /pub/scm/git/git.git/hooks/post-update
contrib/examples/git-clone.sh +1 -1
@@ -75,7 +75,7 @@ clone_dumb_http () { fi http_fetch "$1/info/refs" "$clone_tmp/refs" || die "Cannot get remote repository information. -Perhaps git-update-server-info needs to be run there?" +Perhaps git update-server-info needs to be run there?" test "z$quiet" = z && v=-v || v= while read sha1 refname do
git-repack.sh +1 -1
@@ -11,7 +11,7 @@ a pack everything in a single pack A same as -a, and turn unreachable objects loose d remove redundant packs, and run git-prune-packed f pass --no-reuse-object to git-pack-objects -n do not run git-update-server-info +n do not run git update-server-info q,quiet be quiet l pass --local to git-pack-objects Packing constraints
templates/hooks--post-update.sample +1 -1
@@ -5,4 +5,4 @@ # # To enable this hook, rename this file to "post-update". -exec git-update-server-info +exec git update-server-info
Signature · 1 line
1.7.0.2