Apply .gitconfig
insteadOf rules to Repository.clone()
#844
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
First of all: Thanks for this project! It's been a very good experience so far!
I took me some time to understand why my url
insteadOf
rules are not applied to higher levelClone()
/PlainClone()
commands. As far as I understoodinsteadOf
rules are only applied to existing repositories on.git/config
remotes. On my journey through the project I didn't find any reason to not apply global urlinsteadOf
rules (i.e. defined in.gitconfig
) to higher levelClone()
/PlainClone()
functions. I am using something like this:This code won't apply any
insteadOf
rules from my global config. Am I overlooking something or could url replacement be added to something like:func (r *Repository) CreateRemote(c *config.RemoteConfig) (*Remote, error)
?Thanks for suggestions and hints.
The text was updated successfully, but these errors were encountered: