-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Use gitrepo.Repository instead of wikipath #35398
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
base: main
Are you sure you want to change the base?
Conversation
…nto lunny/remove_wiki_path_ref
…nto lunny/remove_wiki_path_ref
…nto lunny/remove_wiki_path_ref
It seems that the tests are removed, but there's no new one added? |
The method |
modules/gitrepo/clone.go
Outdated
func CloneIn(ctx context.Context, dstRepo Repository, from string, opts git.CloneRepoOptions) error { | ||
return git.Clone(ctx, from, repoPath(dstRepo), opts) | ||
} | ||
|
||
func CloneOut(ctx context.Context, fromRepo Repository, to string, opts git.CloneRepoOptions) error { | ||
return git.Clone(ctx, repoPath(fromRepo), to, opts) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CloneRepoToLocal
CloneLocalToRepo, but I don't understand why it is needed, why a git repo should be cloned from local to the managed repo directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CloneIn means clone an external repository into the managed repository. like migration from github or other system. CloneOut means CloneRepoToLocal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why you flip the argument order?
git clone from to
, git.Clone(from, to)
, why here you sometimes use to, from
, sometimes use from, to
order?
Can there be some consistence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1153e9f
Now the wikipath will not be referenced directly.