Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Plain clone throws error even when repo doesn't exist #755

Closed
anant2614 opened this issue Feb 21, 2018 · 1 comment
Closed

Plain clone throws error even when repo doesn't exist #755

anant2614 opened this issue Feb 21, 2018 · 1 comment
Labels

Comments

@anant2614
Copy link

anant2614 commented Feb 21, 2018

I'm using plain clone to clone a repo.While it doesn't even exist in the directory,it throws an error saying the repo already exists.This is the code:
r,err := git.PlainClone("", false, &git.CloneOptions{ URL: "https://github.com/anant2614/spring-samples", RecurseSubmodules: git.DefaultSubmoduleRecursionDepth, })

@anant2614
Copy link
Author

anant2614 commented Feb 21, 2018

Just went through the code to see that it checks for .git folder.So closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants