git clone of recipe causing errors #65

Closed
opened 2021-09-03 18:18:19 +00:00 by roxxers · 1 comment

b1d4f12e7d/catalogue/catalogue.go (L63)

This git clone is causing an error. I checked and this also happens when just cloning the repo outside of the go code. It happens for repos I have no local repo for.

$ git clone https://git.coopcloud.tech/coop-cloud/Peertube.git /home/roxie/.abra/apps/peertube                                                                     
Cloning into '/home/roxie/.abra/apps/peertube'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (289/289), done.
remote: Total 290 (delta 179), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (290/290), 77.55 KiB | 575.00 KiB/s, done.
Resolving deltas: 100% (179/179), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

I researched the error and seems to be an error only when checking out a branch. The issue is this error could be kinda ignored? But the program can't. Maybe we shoud try and fix the underlying issue tho and figure out why some of the git repos are doing that.

https://git.coopcloud.tech/coop-cloud/go-abra/src/commit/b1d4f12e7dab0d9f1c879da5a2c3ea05bb284c00/catalogue/catalogue.go#L63 This git clone is causing an error. I checked and this also happens when just cloning the repo outside of the go code. It happens for repos I have no local repo for. ```sh $ git clone https://git.coopcloud.tech/coop-cloud/Peertube.git /home/roxie/.abra/apps/peertube Cloning into '/home/roxie/.abra/apps/peertube'... remote: Enumerating objects: 290, done. remote: Counting objects: 100% (290/290), done. remote: Compressing objects: 100% (289/289), done. remote: Total 290 (delta 179), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (290/290), 77.55 KiB | 575.00 KiB/s, done. Resolving deltas: 100% (179/179), done. warning: remote HEAD refers to nonexistent ref, unable to checkout. ``` I researched the error and seems to be an error only when checking out a branch. The issue is this error could be kinda ignored? But the program can't. Maybe we shoud try and fix the underlying issue tho and figure out why some of the git repos are doing that.
roxxers added the
bug
label 2021-09-03 18:18:19 +00:00
Owner

Git is being a Git.

git clone -b main https://git.coopcloud.tech/coop-cloud/peertube.git works 🙄

We solved this in the Bash implementation by doing a clone, then if that failed, do a clone with this main branch flag and if that failed, give up and error out for good. I guess we'll have to do the same.

Git is being a Git. `git clone -b main https://git.coopcloud.tech/coop-cloud/peertube.git` works 🙄 We solved this in the Bash implementation by doing a clone, then if that failed, do a clone with this main branch flag and if that failed, give up and error out for good. I guess we'll have to do the same.
decentral1se added this to the (deleted) milestone 2021-09-04 21:02:35 +00:00
decentral1se self-assigned this 2021-09-06 15:36:26 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#65
No description provided.