Skip to content

Commit a3512ef

Browse files
committed
use Git_jll
1 parent 23937df commit a3512ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ version = "0.5.3"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
8+
Git = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2"
89
Gumbo = "708ec375-b3d6-5a57-a7ce-8257bf98657a"
910
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
1011
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
@@ -13,6 +14,7 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1314

1415
[compat]
1516
AbstractTrees = "0.4"
17+
Git = "1"
1618
Gumbo = "0.8.2"
1719
HypertextLiteral = "0.9"
1820
JSON = "0.20,0.21"

src/MultiDocumenter.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module MultiDocumenter
22

33
import Gumbo, AbstractTrees
44
using HypertextLiteral
5+
import Git: git
56

67
"""
78
SearchConfig(index_versions = ["stable"], engine = MultiDocumenter.FlexSearch, lowfi = false)
@@ -170,7 +171,9 @@ function maybe_clone(docs::Vector{MultiDocRef})
170171
for doc in docs
171172
if !isdir(doc.upstream)
172173
@info "Upstream at $(doc.upstream) does not exist. `git clone`ing `$(doc.giturl)#$(doc.branch)`"
173-
run(`git clone --depth 1 $(doc.giturl) --branch $(doc.branch) --single-branch $(doc.upstream)`)
174+
run(
175+
`$(git()) clone --depth 1 $(doc.giturl) --branch $(doc.branch) --single-branch $(doc.upstream)`,
176+
)
174177
end
175178
end
176179
end

0 commit comments

Comments
 (0)