Skip to content

Commit 27a4f6a

Browse files
authored
Merge pull request #42 from mortenpi/mp/gitjll
Use Git.jl/Git_jll for cloning repos
2 parents 9d5566c + a3512ef commit 27a4f6a

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)
@@ -176,7 +177,9 @@ function maybe_clone(docs::Vector{MultiDocRef})
176177
for doc in docs
177178
if !isdir(doc.upstream)
178179
@info "Upstream at $(doc.upstream) does not exist. `git clone`ing `$(doc.giturl)#$(doc.branch)`"
179-
run(`git clone --depth 1 $(doc.giturl) --branch $(doc.branch) --single-branch $(doc.upstream)`)
180+
run(
181+
`$(git()) clone --depth 1 $(doc.giturl) --branch $(doc.branch) --single-branch $(doc.upstream)`,
182+
)
180183
end
181184
end
182185
end

0 commit comments

Comments
 (0)