File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
julia 0.6
2
2
Compat 0.47.0
3
3
BinDeps
4
+ VersionParsing
4
5
@osx Homebrew
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module Git
6
6
#
7
7
using Compat
8
8
using Base: shell_escape
9
+ using VersionParsing
9
10
export gitcmd # determined by deps/build.jl and saved in deps/deps.jl
10
11
11
12
depsjl = joinpath (dirname (@__FILE__ ), " .." , " deps" , " deps.jl" )
88
89
89
90
Return the version of Git being used by the package.
90
91
"""
91
- function version ()
92
- vs = split (readchomp (` version` ), ' ' )[3 ]
93
- ns = split (vs, ' .' )
94
- if length (ns) > 3
95
- VersionNumber (join (ns[1 : 3 ], ' .' ))
96
- else
97
- VersionNumber (join (ns, ' .' ))
98
- end
99
- end
92
+ version () = vparse (readchomp (` version` ))
100
93
101
94
"""
102
95
Git.modules(args; dir="")
You can’t perform that action at this time.
0 commit comments