diff options
Diffstat (limited to 'examples/progress/main.go')
-rw-r--r-- | examples/progress/main.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/progress/main.go b/examples/progress/main.go index 0da9db8..46ff57a 100644 --- a/examples/progress/main.go +++ b/examples/progress/main.go @@ -12,13 +12,10 @@ func main() { url := os.Args[1] directory := os.Args[2] - r, err := git.NewFilesystemRepository(directory) - CheckIfError(err) - // Clone the given repository to the given directory Info("git clone %s %s", url, directory) - err = r.Clone(&git.CloneOptions{ + _, err := git.PlainClone(directory, false, &git.CloneOptions{ URL: url, Depth: 1, |