Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
21203914
Commit
21203914
authored
Jun 08, 2018
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Gitlab::Popen dependency from lib/gitlab/git
parent
2c05c857
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
lib/gitlab/git.rb
lib/gitlab/git.rb
+1
-1
lib/gitlab/git/version.rb
lib/gitlab/git/version.rb
+11
-0
No files found.
lib/gitlab/git.rb
View file @
21203914
...
...
@@ -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
)
...
...
lib/gitlab/git/version.rb
0 → 100644
View file @
21203914
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment