Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
159 user(s) are online (145 user(s) are browsing Forums)

Members: 1
Guests: 158

MigthyMax, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 (4) 5 6 »
Re: updating sgit
Just popping in
Just popping in


See User information
Hi all

Following on from the chat at
https://www.amigans.net/modules/xforum ... id=123203#forumpost123203, I've tried to get the simplegit and libgit2 work that I'd done into a state so other people might be able to help out too. The repos are at

https://github.com/billyfish/simplegit

and

https://github.com/billyfish/libgit2/tree/amigaos4_port

The additional instructions for how to set it up with my changes are at https://github.com/billyfish/simplegit/blob/master/build.md.

The piece of work that needs to be done next is how to implement mmap () and munmap (). My memory of this is a bit hazy but I think that there are only one or two times where mmap () is used to write to a file and I was checking if they used in a threaded situation or whether we could assume only one thread using it a time which would again make it easier.

Basically if anyone wants to get involved, you're very welcome!

billy




Go to top
Re: updating sgit
Just popping in
Just popping in


See User information
@billyfish

If it's file backed mmaps only, one file at the time with no msyncs, it should be straight forward. If it's more complicated than that, a fake implementation will probably be very inefficient. It would be great if someone took the time to do it, it's probably a pretty common porting problem. My guess is that this could be a good candidate for trying out the OS4 extmem feature.

Go to top
Re: updating sgit
Site Builder
Site Builder


See User information
Unfortunately, it seems that we can't use sgit with github anymore. Since yesterday I try to push changes to my repository and I get the following error:

libgit error (12): unexpected HTTP status code: 403

I don't know if you guys have the same problem, or if it's just me, or if there is a way to bypass the problem.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: updating sgit
Amigans Defender
Amigans Defender


See User information
@walkero

IIRC GitHub were going to change to requiring keys instead of passwords (not sure if this has happened but it was definitely coming). Don't know if sgit/libgit2 support SSH, but that's what it needs.

Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@walkero

Wonder if @sTix will return

Go to top
Re: updating sgit
Site Builder
Site Builder


See User information
@Chris
Yeah... you are probably right. For now I am moving my projects to a self hoste gitea.io, which still works fine.

@Raziel
What you mean? He is still around.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@walkero

Wonder if @billyfish will return

Go to top
Re: updating sgit
Just can't stay away
Just can't stay away


See User information
@walkero

EDIT: removed some false advice about SSH.

Personal access tokens should work with sgit and Github.


Edited by Capehill on 2021/8/30 12:27:10
Go to top
Re: updating sgit
Site Builder
Site Builder


See User information
@Capehill
Thank you for testing it. I was looking on how to set this up on AmigaOS 4, to use ssh keys, but could not find a guide. Can you please provide some info on that, or if there is a page to point me to?

Thanks a lot.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: updating sgit
Just can't stay away
Just can't stay away


See User information
@walkero

Oops, sorry. I mixed up some things here. I'm using Personal access tokens that replace password and this should be working. Check Settings -> Developer Settings menu on Github.

I don't know about SSH.

Go to top
Re: updating sgit
Site Builder
Site Builder


See User information
@Capehill
My god, you are right. I created a self access token, as you described, and used that instead of a password, and work like a charm.

Thank you so much for that solution.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@all

Can someone give me a breakdown on how to push changes to a repo?

I don't seem to be able to do that.

My error so far:

sgit push origin patch-1
libgit error: No detailed error message!


Step-by-step and from the beginning, please

Thank you

Go to top
Re: updating sgit
Just can't stay away
Just can't stay away


See User information
@Raziel

Syntax seems correct to me.

1) Are you able to fetch from origin?
2) Are you pushing from repo's root level (some sgit commands are picky about directory: not sure about push)
3) Is your local branch called "patch-1"?

Go to top
Re: updating sgit
Site Builder
Site Builder


See User information
I guess you cloned first your code from the repo, right? Something like
sgit clone https://github.com/reponame.git reponame

If you have done that and then made changes to your code you need to stage the changes. You can see what files were changed by

sgit status

To stage all of them you have to do

sgit add .

If you want to stage one file, i.e.

sgit add src/filename.c

Then you have to create a commit for the staged files with a description, like

sgit commit -m "These are my changes"

Then you can push that commit to your repo like

sgit push origin branchname

That's all you should do for pushing changes. Have in mind that you might get connection issues with GitHub if your try to use your login credentials. The only way to make it work is with a self-access token.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@capehill
@walkero

Thank you both, i'm still at a bit fo a loss here.

- I'm on master branch with the changes
- I don't really know how to create a local branch

- I followed all of @walkero's steps but still end up with the
libgit error: No detailed error message!

sorry for being a noob (i did all the PR's from a PC from GitHub's webpage, but obviously this is not sufficent for some changes)

Thank you for all the help

Go to top
Re: updating sgit
Just can't stay away
Just can't stay away


See User information
@Raziel

sgit branch branch-name
sgit checkout branch-name

(sgit add, sgit commit...)

sgit push origin branch-name

Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@Capehill

Do i need to change everything again, or does it pick up the changes and move it to the new branch?

Thank you

Go to top
Re: updating sgit
Just can't stay away
Just can't stay away


See User information
@Raziel

Your new branch is based on the one you were before, master. "sgit log" shows you the commits done.

If you have non committed changes before checkout, be careful because branch switching using sgit is destructive (if I remember correctly), so you could lose changes.

Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@Capehill

Thank you very much

Will try it out once i got something to change

Go to top
Re: updating sgit
Home away from home
Home away from home


See User information
@all

Since some people are still using libgit (i hope), does anyone else get SSL errors as of late aswell?

Whenever i want to clone or fetch updates from ScummVM i get
libgit error (12): SSL error: unknown error

sgit clone https://github.com/scummvm/scummvm scummvm
net   4% (15074 kb62385/1266004)  /  idx   4% (60241/1266004)  /  chk   0% (   0/   0)
libgit error (12): SSL errorunknown error

same with "sgit fetch origin"...

Funny enough, it will work on the tools subproject (maybe it's the size?)

This happened after updating to AmiSSL 5.12

Certificates are from 12/12/2023

Thank you very much in advance

edit:
Maybe github has changed?


Edited by Raziel on 2023/12/14 12:05:07
Go to top

  Register To Post
« 1 2 3 (4) 5 6 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project