Skip to content

Commit

Permalink
docs: LibGit2: use GitRepo constructor instead of init (JuliaLang#46442)
Browse files Browse the repository at this point in the history
init does not handle working trees, so the constructor must be used
instead.
  • Loading branch information
msagarpatel authored Aug 30, 2022
1 parent 99340fe commit fa90dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LibGit2/src/LibGit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ current changes. Note that this detaches the current HEAD.
# Examples
```julia
repo = LibGit2.init(repo_path)
repo = LibGit2.GitRepo(repo_path)
open(joinpath(LibGit2.path(repo), "file1"), "w") do f
write(f, "111\n")
end
Expand Down

0 comments on commit fa90dc8

Please sign in to comment.