Skip to content

2_app initializer ignores git bin_path from config/gitlab.yml

In config/initializers/2_app.rb:

REVISION = Gitlab::Popen.popen(%W(git log --pretty=format:%h -n 1)).first.chomp

causes errors on FreeBSD:

/usr/local/lib/ruby/2.1/open3.rb:201:in `spawn': No such file or directory - git (Errno::ENOENT)

because it's not using the path specified in gitlab.yml:

 git:
    bin_path: /usr/local/bin/git

Cheers, Yonas