Skip to content

Commit 500b92f

Browse files
committed
Fix version inconsistencies across documentation
Update import statements from v5 to v6 and remove deprecated bare parameter from git.PlainClone() calls to align with v6 API changes. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
1 parent 125b671 commit 500b92f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ go-git is a highly extensible Git implementation in pure Go. This documentation
1313

1414
```go
1515
import (
16-
"github.com/go-git/go-git/v5"
16+
"github.com/go-git/go-git/v6"
1717
)
1818

1919
func main() {
2020
// Clone repository
21-
repo, err := git.PlainClone("/path/to/repo", false, &git.CloneOptions{
21+
repo, err := git.PlainClone("/path/to/repo", &git.CloneOptions{
2222
URL: "https://github.com/go-git/go-git",
2323
})
2424
}

src/tutorials/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ operations using the latest version of go-git.
1616
The following example shows how to clone a Git repository to your local filesystem:
1717

1818
```go
19-
r, err := git.PlainClone("/path/to/repo", false, &git.CloneOptions{
19+
r, err := git.PlainClone("/path/to/repo", &git.CloneOptions{
2020
URL: "https://github.com/go-git/go-git",
2121
})
2222
```

0 commit comments

Comments
 (0)