Skip to content

Commit 888cb87

Browse files
committed
Only use first version of git found on path
don't try to use a multiline path
1 parent 4131822 commit 888cb87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ else
6464
try
6565
# this is in a try because some environments like centos 7
6666
# docker containers don't have `which` installed by default
67-
gitpath = readchomp(is_windows() ? `where git` : `which git`)
67+
gitpath = chomp(readlines(is_windows() ? `where git` : `which git`)[1])
6868
gitcmd = `$gitpath`
6969
end
7070
info("Using $gitver found on path" * (gitcmd == `git` ?

0 commit comments

Comments
 (0)