abra recipe fetch and refspecs #757
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
while testing prs for recipes i've noticed that the origin doesn't fetch remote branches. i found that it's set to only fetch the default branch, so i had to change it like this: https://www.tutorialpedia.org/blog/fetch-in-git-doesn-t-get-all-branches/#3-restrictive-refspec
i'm assuming that
abra recipe fetchchanges this configuration to only track changes on the default branch?related because we were discussing having major version releases in different branches: toolshed/organising#578
AFAIR,
abra recipe fetchdoes only update the default branch. That's the case for all our Git related implementation code inabra. We used to specify the refspecs (seeabragit log in the early days) but AFAIR, it "didn't work".I think we tried doing this refspec trick before but it didn't work. It could be tried again but
go-gitis sometimes not really working as expected unfortunately... I kind of regret not just depending on/usr/bin/git... you could fiddle with the options here:I just tried to make
abra recipe fetch --forceupdate a recipe and it didn't work, so I think there is a bug there as well since a bunch of internal logic got refactored. To be Fixed ™️mmm i have this recipes directory since abra 0.9 iirc so it may be the reason for refspecs being too specific.