Skip to content

Gitlab 12.9 hooks issues #337

@db4

Description

@db4

(a separate issue from #271 (comment))

@slonopotamus

Yes. This stuff was added to docs: https://bozaro.github.io/git-as-svn/htmlsingle/git-as-svn.html#_configuration

Looks like this doesn't work anymore. After upgrading Gitlab to 12.9.1-ce.0 and git-as-svn to 1.25.0 all my svn commits fail due to a hook issue:

Transmitting file data .done
Committing transaction...
svn: E165001: Commit failed (details follow):
svn: E165001: Hook /opt/gitlab/embedded/service/gitaly-ruby/git-hooks/pre-receive failed with output:
/opt/gitlab/embedded/service/gitaly-ruby/git-hooks/pre-receive: 4: exec: /gitaly-hooks: not found

pre-receive is a link to gitlab-shell-hook:

#!/bin/sh

# This is the single source of truth for where Gitaly's embedded Git hooks are.
exec "$GITALY_BIN_DIR/gitaly-hooks" "$(basename $0)" "$@"

The problem is that GITALY_BIN_DIR is not defined on its invocation. I tried to define it in /etc/default/git-as-svn
GITALY_BIN_DIR=/opt/gitlab/embedded/bin, but it doesn't help. Any idea how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggitlabGitLab integration

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions