git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git daemon --access-hook problem
@ 2013-05-31 20:22 Eugene Sajine
  2013-06-03  0:33 ` Eugene Sajine
  2013-06-03 17:20 ` Antoine Pelisse
  0 siblings, 2 replies; 6+ messages in thread
From: Eugene Sajine @ 2013-05-31 20:22 UTC (permalink / raw)
  To: git

Hi,

I'm trying to test this new feature and having problems getting any
results in the following scenario:

i have a repo in local folder

/home/users/myuser/repos/projectA/.git

i start the daemon with the following:

git daemon --export-all --base-path=/home/users/myuser/repos
--enable=receive-pack --access-hook=/home/users/myuser/test_hook.bash

test_hook.bash has the following:

#!/bin/bash
echo $@ >> test_hook_out.txt
echo $REMOTE_ADDR >> test_hook_out.txt

the hook is set to be executable - otherwise it complains when i do
anything via git protocol, which proves that it seems to or check the
hook:

then i did:

cd ~/tmp/

git clone git://myhost/projectA projectA
cd projectA

and trying to perform some operations like fetch or push. It is cloned
and fetches and pushes successfully.
The problem is that the file test_hook_out.txt doesn't have anything
in it after the execution, So the hook doesn't seem to work.

What might be the issue here?

Thanks,
Eugene

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-03 20:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-31 20:22 git daemon --access-hook problem Eugene Sajine
2013-06-03  0:33 ` Eugene Sajine
2013-06-03 17:20 ` Antoine Pelisse
2013-06-03 18:02   ` Eugene Sajine
2013-06-03 19:05     ` Antoine Pelisse
2013-06-03 20:00       ` Eugene Sajine

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).