Skip to content

'fatal: Invalid refspec' error when using glob refspecs #103

@ngroman

Description

@ngroman

I work in a repo with hundreds of very active contributors and thousands of branches. In order to speed up fetches, I have my .git/config only fetch master branches and those that match start with my username

.git/config:

...
[remote "origin"]
        url = git@github.com:XXX/XXX.git
        fetch = +refs/heads/master:refs/remotes/origin/master
        fetch = +refs/heads/nroman-*:refs/remotes/origin/nroman-*
...

Running the command GitHub: View (master) errors out with error: fatal: Invalid refspec '+refs/heads/nroman-*:refs/remotes/origin/nroman-*'

plugin version 1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions