Correction in post-update.sample hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>From e0b074ac5b8227bf9d0eaef94a631a610c9d9e44 Mon Sep 17 00:00:00 2001
From: Henry Gebhardt <hsggebhardt@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx>
---
 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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]