From: Eugene Sajine <euguess@gmail.com>
To: git@vger.kernel.org
Subject: git daemon --access-hook problem
Date: Fri, 31 May 2013 16:22:38 -0400 [thread overview]
Message-ID: <CAPZPVFZDHHGyHhzBVVK6jS=XhEd2+JpmBT8ofiGOww8vuLUWWw@mail.gmail.com> (raw)
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
next reply other threads:[~2013-05-31 20:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-31 20:22 Eugene Sajine [this message]
2013-06-03 0:33 ` git daemon --access-hook problem 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
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPZPVFZDHHGyHhzBVVK6jS=XhEd2+JpmBT8ofiGOww8vuLUWWw@mail.gmail.com' \
--to=euguess@gmail.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.
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).