Commit 8a7d01eb authored by Douwe Maan's avatar Douwe Maan

Merge branch 'lib-gitlab-git-version-popen' into 'master'

Remove Gitlab::Popen dependency from lib/gitlab/git

See merge request gitlab-org/gitlab-ce!19577
parents b085edee 21203914
...@@ -62,7 +62,7 @@ module Gitlab ...@@ -62,7 +62,7 @@ module Gitlab
end end
def version def version
Gitlab::VersionInfo.parse(Gitlab::Popen.popen(%W(#{Gitlab.config.git.bin_path} --version)).first) Gitlab::Git::Version.git_version
end end
def check_namespace!(*objects) def check_namespace!(*objects)
......
module Gitlab
module Git
module Version
extend Gitlab::Git::Popen
def self.git_version
Gitlab::VersionInfo.parse(popen(%W(#{Gitlab.config.git.bin_path} --version), nil).first)
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment