From: Henry Gebhardt <hsggebhardt@googlemail.com>
To: git@vger.kernel.org
Subject: Correction in post-update.sample hook
Date: Thu, 18 Mar 2010 14:16:08 +0100 [thread overview]
Message-ID: <20100318141608.2a94c71e@googlemail.com> (raw)
[-- 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
reply other threads:[~2010-03-18 13:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100318141608.2a94c71e@googlemail.com \
--to=hsggebhardt@googlemail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.