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

add support for url.*.insteadof in git config #1443

Merged
merged 4 commits into from Aug 15, 2016
Merged

Conversation

technoweenie
Copy link
Contributor

Rewrite of #1117 after the config refactoring in #1425. There's no readGitInsteadOfConfig() anymore to hook into anymore.

We can't easily support pushinsteadof without bigger changes. config.NewEndpointWithConfig() doesn't know if the request is a push or pull.

if longestalias < alias {
longestalias = alias
} else if longestalias == alias {
fmt.Fprintf(os.Stderr, "WARNING: Multiple 'url.*.insteadof' keys with the same alias: %q", alias)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have an integration test for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why yes, we should, because it caught a bug :)

@ttaylorr
Copy link
Contributor

Looks good, let's 🚢

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

Successfully merging this pull request may close these issues.

None yet

2 participants