Skip to content

Not displaying default remote if it is not named "origin" #63

@janpipek

Description

@janpipek

I found this randomly when looking for possible causes of #62 .

In your code to display a little info about repos, you explicitly call "git remote show origin". This will fail if the default remote is not called "origin". In such case, it just shows "origin" string.

How to reproduce: Update your .git/config to something like

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin_"]
	url = git@github.com:felipecaputo/git-project-manager.git
	fetch = +refs/heads/*:refs/remotes/origin/_*
[branch "master"]
	remote = origin_
	merge = refs/heads/master

Perhaps, it's a marginal issue but anyway...

Cheers,
Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions