Remove Gitlab::Popen dependency from lib/gitlab/git
This commit is contained in:
parent
2c05c8574f
commit
2120391441
|
|
@ -62,7 +62,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def version
|
||||
Gitlab::VersionInfo.parse(Gitlab::Popen.popen(%W(#{Gitlab.config.git.bin_path} --version)).first)
|
||||
Gitlab::Git::Version.git_version
|
||||
end
|
||||
|
||||
def check_namespace!(*objects)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Reference in New Issue