Skip to content

"git bug push" fails with "Error: repository not found" when using insteadOf #944

@larsks

Description

@larsks

I have insteadOf aliases in my git configuration, like this:

$ git config --list | grep me:
url.ssh://git@github.com/larsks/.insteadof=me:

If I configure a repository with a remote using that alias, as in:

git remote set-url origin me:git-bug-example

Then when I attempt to git bug push with this configuration, it fails with an error:

$ git bug push
Error: repository not found

It looks like git bug is performing git operations with something that doesn't parse git configuration files. Aliases like this can be expanded using the git remote get-url command:

$ git remote get-url origin
ssh://git@github.com/larsks/git-bug-example

Metadata

Metadata

Assignees

Labels

area/gitRelates to git operationskind/bugRelates to an issuepriority/backlogHigher priority than priority/awaiting-more-evidencetriage/acceptedThis issue is accepted

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions