From 352170d1bf8cc7b32b85d8a2740eb3627e952a6e Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sun, 29 Jan 2017 02:17:01 +0100 Subject: worktree, status implementation --- examples/clone/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/clone') diff --git a/examples/clone/main.go b/examples/clone/main.go index 13257ca..fc50960 100644 --- a/examples/clone/main.go +++ b/examples/clone/main.go @@ -13,13 +13,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{ + r, err := git.PlainClone(directory, false, &git.CloneOptions{ URL: url, Depth: 1, }) -- cgit