* Correction in post-update.sample hook
@ 2010-03-18 13:16 Henry Gebhardt
0 siblings, 0 replies; only message in thread
From: Henry Gebhardt @ 2010-03-18 13:16 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
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
[-- Attachment #2: 0001-git-update-server-info-git-update-server-info-trivia.patch --]
[-- Type: text/x-patch, Size: 3205 bytes --]
>From e0b074ac5b8227bf9d0eaef94a631a610c9d9e44 Mon Sep 17 00:00:00 2001
From: Henry Gebhardt <hsggebhardt@googlemail.com>
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 <hsggebhardt@googlemail.com>
---
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(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 805e051..9b97242 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -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::
diff --git a/Documentation/howto/rebuild-from-update-hook.txt b/Documentation/howto/rebuild-from-update-hook.txt
index 48c6756..9821526 100644
--- a/Documentation/howto/rebuild-from-update-hook.txt
+++ b/Documentation/howto/rebuild-from-update-hook.txt
@@ -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
diff --git a/contrib/examples/git-clone.sh b/contrib/examples/git-clone.sh
index 547228e..0dd704a 100755
--- a/contrib/examples/git-clone.sh
+++ b/contrib/examples/git-clone.sh
@@ -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
diff --git a/git-repack.sh b/git-repack.sh
index 1eb3bca..532ecfe 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -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
diff --git a/templates/hooks--post-update.sample b/templates/hooks--post-update.sample
index 5323b56..ec17ec1 100755
--- a/templates/hooks--post-update.sample
+++ b/templates/hooks--post-update.sample
@@ -5,4 +5,4 @@
#
# To enable this hook, rename this file to "post-update".
-exec git-update-server-info
+exec git update-server-info
--
1.7.0.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-18 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 13:16 Correction in post-update.sample hook Henry Gebhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.