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

Add branch information for install and update package #685

Merged
merged 3 commits into from
Jan 22, 2021

Conversation

YangKeao
Copy link
Contributor

See #678.

Find branch information in the repository first and then clone (or pull). If package doesn't have a branch attribute, master is used as the default branch.

Maybe more test is needed for it (especially for function omf.repo.pull). I only test them on several packages and themes and it works well, but I don't know wethear this project has some unit tests to go through.

@YangKeao
Copy link
Contributor Author

oh-my-fish/packages-main#82 is related repo pull request

@jhillyerd
Copy link
Contributor

Is this PR dead? Branch support would be helpful when testing plugin PRs locally.

@faho
Copy link
Contributor

faho commented Dec 1, 2020

This has a bunch of unadressed comments, so those should either be handled by the author, handled by whoever merges it or this should be closed.

Copy link
Member

@scorphus scorphus left a comment

Choose a reason for hiding this comment

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

I added a suggestion to the two changes I think are necessary, so they can be committed. Please confirm, @oh-my-fish/core

pkg/omf/functions/repo/omf.repo.pull.fish Outdated Show resolved Hide resolved
pkg/omf/functions/repo/omf.repo.pull.fish Outdated Show resolved Hide resolved
@YangKeao
Copy link
Contributor Author

YangKeao commented Dec 2, 2020

Sorry, I have forgotten this PR for a while 😿 . I will follow these comments and modify this PR soon 🚀 .

@wzzrd
Copy link

wzzrd commented Jan 21, 2021

Could this please be merged and released? This would really help me further develop some plugins that I'm working on :)

If this is waiting for testing, let me know :) Happy to test.

@scorphus scorphus merged commit df20117 into oh-my-fish:master Jan 22, 2021
@wzzrd
Copy link

wzzrd commented Feb 1, 2021

Cool, thanks!

@tennox
Copy link
Contributor

tennox commented Jun 20, 2022

I think you're close - but I get an error when using omf channel dev:

$ omf update
Oh My Fish is up to date.
You are now using Oh My Fish version 7-44-gd428b72.
Updating https://github.com/oh-my-fish/packages-main master... Done!
fatal: couldn't find remote ref refs/heads/master
Could not update fish-functions.
bobthefish is already up-to-date.
default is already up-to-date.

@tennox
Copy link
Contributor

tennox commented Jun 20, 2022

well... I see the PR covers a bit of a different but related issue - I created a separate PR instead:
#908

tennox added a commit to tennox/oh-my-fish that referenced this pull request Jun 20, 2022
scorphus pushed a commit to tennox/oh-my-fish that referenced this pull request Oct 2, 2022
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

7 participants