-
Notifications
You must be signed in to change notification settings - Fork 117
hooks are not installed #676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Setting the log level to DEBUG I found this:
Might there be a problem with it finding the gitolite version? It does not say success or failure. |
Outputting stderr and some other stuff yields the following:
It seems to me that the mistake might happen here? The
|
I managed to get it to work (in a hacky way). I changed the diff --git a/lib/redmine_git_hosting/utils/exec.rb b/lib/redmine_git_hosting/utils/exec.rb
index e5193f4f..c0881576 100644
--- a/lib/redmine_git_hosting/utils/exec.rb
+++ b/lib/redmine_git_hosting/utils/exec.rb
@@ -12,6 +12,9 @@ module RedmineGitHosting
# we rethrow a +GitoliteCommandException+ with a meaningful error message.
def capture(command, args = [], opts = {}, &block)
merge_output = opts.delete(:merge_output) { false }
+ unless opts[:stdin_data].nil?
+ opts[:stdin_data].sub!("local\n/hooks", "local/hooks")
+ end
stdout, stderr, code = execute(command, args, opts, &block)
if code != 0
error_msg = "Non-zero exit code #{code} for `#{command} #{args.join(" ")}`" Now it works as expected. But there seems to have been a bug introduced in the generation of I will still leave this open for the moment, curios to see if this is some weirdness on my box or a general problem. |
Here's the solution #646 |
Ah thanks for the heads up! Closing. (Aww! Plan9 Bunny goes to space!) |
Hi
Just installed gitolite and redmine_git_hosting on our redmine 3.3. The hooks can't be installed for some reason. Log shows this:
This is the versions we're running:
gitolite:
sudo
works as expected (I cansudo -iu git
asredmine
and it works without password). I can create repos and clone them, but pushes are not registered by redmine.this is what happens when I click on
Install hooks
Thanks in advance for any help! It is appreciated.
The text was updated successfully, but these errors were encountered: