Catalogue default branch naming issue in abra? #295
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?
Problem
Similar to #272, I just hit a snag while following the new operator's tut:
Updating didn't help (it was already a fairly fresh install of abra), as the troubleshooting page suggested. Removing recipes and pulling also didn't seem like the right fix since this was with the catalogue.
Workaround
I cd'ed into ~/.abra/catalogue and checked the git status, saw I was on branch
masterwith an empty commit log:Made me wonder if
mastershould've beenmain, and sure nuff, doing a fetch and switch did the trick:Solution
Dunno if updating the Troubleshooting is sufficient or warranted, b/c maybe this was peculiar to me or my git setup or how I installed
abra.It also seems like there may be some internal refs to
masterthat need renaming, too, possibly?Lemme know if I can give more context. Also, hi friends! 👋
Hi, welcome @jgaehring, thanks so much for reporting! This is a mysterious one indeed, we have no
masterbranch on that repo 🤔 https://git.coopcloud.tech/toolshed/recipes-catalogue-json/branchesI'll see if I can get a reproducible test case going using Docker or a VM. If you have a second (and no pressure), I wonder if the problem happens consistently for you? You could test by e.g. doing:
Not sure if I set the
ABRA_DIRproperly, but trying that a few times I did not get the same error. I removed the existing Traefik app w/o setting any vars then recreating it w/abra app new traefikbut again with no errors; the app was created with expected behavior. Also tried it with Nextcloud and got no errors. I'm half-tempted to try reinstallingabrabut for the moment would prefer not to, since it's been worked around well enough if not properly resolved.I do wonder if this call to
HasBranchmight give a false positive for any reason, resulting inGetDefaultBranchreturning the fallback"master"here:Just following a hunch, b/c while I'm not much familiar with Go, I have been monkeying with my local git configs lately. I still have my global
init.defaultbranchset tomain(not that that would effect it if it wasmaster), but it still seemed a likely place to look. I dunno if this is relevant either, but after giving a shot at upgradingabra, like I mentioned above, I upgraded my git PPA and version from Ubuntu's stable upstream of git v.2.43.0 to the git-core PPA and git v.2.52.0. The results ofabra app new traefikwere the same both before and after all that, so probably inconsequential, but does seem to be within the same ballpark of concerns.Also, so sorry I just realized I logged this in the docs repo rather than abra's! I think I opened this via the #272 issue page. 🤦
Related: toolshed/organising#394