summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef1cc2c)
raw | patch | inline | side by side (parent: ef1cc2c)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Dec 2005 00:35:48 +0000 (16:35 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Dec 2005 00:38:16 +0000 (16:38 -0800) |
Mention that update-hook does not emit its stdout to the sender.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/hooks.txt | patch | blob | history | |
Documentation/howto/rebuild-from-update-hook.txt | patch | blob | history |
index 7ee3571bc09642f07ec50d5b3cfc9d802119889e..4ad1920ec10cf4b7733ebeae1424f003cc3fe9eb 100644 (file)
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
implement access control which is finer grained than the one
based on filesystem group.
+The standard output of this hook is sent to /dev/null; if you
+want to report something to the git-send-pack on the other end,
+you can redirect your output to your stderr.
+
post-update
-----------
The default post-update hook, when enabled, runs
`git-update-server-info` to keep the information used by dumb
transport up-to-date.
+
+The standard output of this hook is sent to /dev/null; if you
+want to report something to the git-send-pack on the other end,
+you can redirect your output to your stderr.
diff --git a/Documentation/howto/rebuild-from-update-hook.txt b/Documentation/howto/rebuild-from-update-hook.txt
index ebd025db85d6424760528b64dfdbd7a520411fe4..02621b54a03ce5771eab1c49d121a07ba31cbf16 100644 (file)
are built from Documentation/ directory of the git.git project
and needed to be kept up-to-date. The www.kernel.org/ servers
are mirrored and I was told that the origin of the mirror is on
-the machine master.kernel.org, on which I was given an account
+the machine $some.kernel.org, on which I was given an account
when I took over git maintainership from Linus.
The directories relevant to this how-to are these two:
EOF
$ chmod +x /pub/scm/git/git.git/hooks/post-update
-There are three things worth mentioning:
+There are four things worth mentioning:
- The update-hook is run after the repository accepts a "git
push", under my user privilege. It is given the full names
pull" it does into $HOME/doc-git/docgen/ repository would not
work correctly.
+ - The stdout of update hook script is not connected to git
+ push; I run the heavy part of the command inside "at", to
+ receive the execution report via e-mail.
+
- This is still crude and does not protect against simultaneous
make invocations stomping on each other. I would need to add
some locking mechanism for this.