Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于克隆代码时出现切换分支失败问题 #40

Open
lupingp opened this issue Sep 26, 2023 · 1 comment
Open

关于克隆代码时出现切换分支失败问题 #40

lupingp opened this issue Sep 26, 2023 · 1 comment

Comments

@lupingp
Copy link

lupingp commented Sep 26, 2023

在使用clone代码,源码使用setGitDir方法,这会导致克隆目标仓库代码时,会克隆到工程本地,且指定的地址,没有目标工程代码,改为setDirectory方法,可以克隆成功

image

@lupingp
Copy link
Author

lupingp commented Sep 26, 2023

通过源码发现,setDirectory方法内部也会设置setGitDir
image

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

No branches or pull requests

1 participant