Open alingse opened 3 years ago
@alingse could you elaborate please?
@yakky I update the code in the begin comment.
I want repo
instance (GitUrlParsed
) have some method to rewrite the subpart.
@alingse having a comprehensive way to mutate a URL from one provider to another is not really in scope
It's subject to too many pitfalls (just an example: gitlab supports subgroups - URL like /organization/something/repo.git
- while github doesn't) to be reliable the best we can do is to add a public method which does nothing but replacing a single value in _parsed
attribute, something like
@data.setter
def data(self, key, value):
self._parsed[key] = value
I want to use this package to do auto-migration git repo
eg: import repo from
github.com
togitlab.com
I need some code like this :
I find the way to rewrite the repo info