Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Passwords in URL fail on certain characters #957

@scooterhanson

Description

@scooterhanson

Using password auth, I noticed that a clone would fail with a password containing #. Wherever the failure is, it truncated the URL from https://myuser:xyz#[email protected]/... to https://myuser/.... The resulting message from this says Failed to clone repository: Get https://myuser/info/refs?service=git-upload-pack: dial tcp: lookup myuser: no such host.

This happens before anything ever gets to PathEscape() in plumbing/transport/common.go. There are other failures with varying messages that happen if the password contains %, /, and ^. Because % gives an error, I can't pass in a pre-escaped string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions