Skip to content

Commit fa90dc8

Browse files
authored
docs: LibGit2: use GitRepo constructor instead of init (JuliaLang#46442)
init does not handle working trees, so the constructor must be used instead.
1 parent 99340fe commit fa90dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LibGit2/src/LibGit2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ current changes. Note that this detaches the current HEAD.
477477
478478
# Examples
479479
```julia
480-
repo = LibGit2.init(repo_path)
480+
repo = LibGit2.GitRepo(repo_path)
481481
open(joinpath(LibGit2.path(repo), "file1"), "w") do f
482482
write(f, "111\n")
483483
end

0 commit comments

Comments
 (0)