Skip to content

basher outdated fails on non-existing repo #123

@dracorp

Description

@dracorp

I had a repository installed by basher that currently does not exist.
basher outdated did not list my other repository also installed by basher. Finally I found that git remote update on non-existing repository was failing.

$ git remote update
remote: Repository not found.
fatal: repository 'https://github.com/user/repo.git/' not found

It would be good to handle this case so that the basher does not terminate the process just display the reason for its exit.

The same situation is for:

$ git remote update
fatal: couldn't find remote ref refs/heads/master

Here there was a branch change from master to main. The set -e itself is problematic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions