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 11julia 0.6
22Compat 0.47.0
33BinDeps
4+ VersionParsing
45@osx Homebrew
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module Git
66#
77using Compat
88using Base: shell_escape
9+ using VersionParsing
910export gitcmd # determined by deps/build.jl and saved in deps/deps.jl
1011
1112depsjl = joinpath (dirname (@__FILE__ ), " .." , " deps" , " deps.jl" )
8889
8990Return the version of Git being used by the package.
9091"""
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` ))
10093
10194"""
10295 Git.modules(args; dir="")
You can’t perform that action at this time.
0 commit comments