Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctor: check if Git remotes match db URLs #851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

scorphus
Copy link
Member

Continuing @oranja's work.

@scorphus scorphus requested a review from a team as a code owner July 31, 2021 22:53
Comment on lines +4 to +5
and test "$git_dir" = "$repo_dir"
or return 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oranja, these are the only two of lines I've got a comment for. I tested this change in many different ways, one of them using a soft link to a plugin. In this case, nothing is returned and I end up with something like:

Warning: The remote URI for apt doesn't match the URI in OMF's database.
Remote URI:
Index URI: https://github.com/oh-my-fish/plugin-apt

A missing remote URI, even though the plugin works fine.

Perhaps there could be a previous check for such cases with an appropriate warning.

What do you think?

@scorphus scorphus force-pushed the doctor-db branch 4 times, most recently from e33beaa to 9d58ad9 Compare October 2, 2022 22:29
Co-authored-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants