git
Kevin Swinton (6267) 25 posts |
Hi folks. I have just made available a very early git 0.5.0-alpha1.0 release for RISC OS.More information, and downloads, are available here: http://abbeycatuk.info/2020/04/01/risc-os-git/ This release serves as a personal milestone, as proof to the community it’s being worked on, and to get some critical early feedback at this stage. Don’t please try and use it in any aggressive/production manner, it would just be helpful to get that feedback. Just hope it’s looking reasonably OK so far. |
Martin Avison (27) 1417 posts |
That link just gives me ’Couldn’t resolve host name’. |
Kevin Swinton (6267) 25 posts |
Apologies, AWS configuration issue. Should now be resolved (have just rechecked that link on two different systems, so should be sorted). |
Julie Stamp (8365) 462 posts |
If I type git in a taskwindow or at F12 I get “Wimpslot not big enough to run ELF program”. Is it possible to make it automatically claim enough memory? Also, if I do *dir I get fatal: cannot access component in path ‘/RAM::RamDisc0.$./git/objects’: Input/output error (Err #2) and I have just an empty directory RAM:$./git (But init works fine from within a sub-directory, or from $ if I do *git init —bare) The manual looks really nice :-) |
Martin Avison (27) 1417 posts |
I can now see the web pages, but cannot get the downloads to work in Netsurf v3.9. |
Kevin Swinton (6267) 25 posts |
With regards Julie’s comment about using the RAM FS, yes I can see that issue. It’s because you’re in the root directory – never had an empty root directory during testing (git init typically not used against a root directory) but that’s something that can be fixed. In terms of Martin’s point about Netsurf v3.9, apologies but I don’t use RISC OS web browsers much. You may get more help from others here, otherwise I’d suggest downloading outside of RISC OS and transferring over (eventually git will become self-hosting and it will reach a point where you will be able to get git using git). That or it’ll end up in the RISC OS package manager presumably. I may have to sort out some kind of BugZilla approach for git shortly – I suspect as time goes on, it will become more and more important for the community to be able to log things (rather than overly “pollute” threads!) Do feel free to email me any issues/probs/thoughts via my email address (found in the PDF manual). |
Martin Avison (27) 1417 posts |
Netsurf will download files when they have normal links to be followed. I suspect Wordpress uses some weird way of ‘managing’ downloads using some javascript. I will have to download next time I have my PC running. |
David Pitt (3386) 1248 posts |
Some trivia to get out of the way first. The downloads need to be done not with NetSurf and a WimpSlot needs increasing to 1600k.
*sgit clone <a href="https://gitlab.riscosopen.org/RiscOS/Sources/Apps/FormED">https://gitlab.riscosopen.org/RiscOS/Sources/Apps/FormED</a> FormED Trying with the new *git clone <a href="https://gitlab.riscosopen.org/RiscOS/Sources/Apps/FormED">https://gitlab.riscosopen.org/RiscOS/Sources/Apps/FormED</a> FormED I have entered some credentials. [core] riscos = true [credential] password = **** user = ****** [user] name = ***** **** email = ******@******.**.** What have I missed, or am I being a bit previous? |
Kevin Swinton (6267) 25 posts |
The current clone code just assumes (by default) that HTTPS authentication will be required, and so needs the credentials set up beforehand. The content of your config file there suggests that the credentials haven’t quite been defined correctly. It should be credential.pass (not credential.password), so if you configure that appropriately, then the HTTPS clone should be successful (without actually having to refer to those auth details, as this GitLab repo won’t ever present git with the need to pass these details over!) See if that helps. |
Rick Murray (539) 13394 posts |
I hacked my build of RISC OS to have a 4096K WimpSlot, though it can be done with an Obey file in Choices:Boot.Tasks. The default (640K?) is an artefact of a different era and it ought to be bumped up to something more in keeping with the sort of things people might want to run these days. That being said…
I’m guessing it’s the ELF loader generating that message? Why on earth doesn’t it try to allocate enough memory? You know, like the standard OS behaviour that it is replacing. :-p |
Stuart Painting (5389) 680 posts |
The page uses an onclick="location.href= structure to hold the necessary download URL – a classic example of using Javascript for the sake of using Javascript. Once you’ve wrestled the URL out of the page source, the package can be downloaded by a non-Javascript browser. |
Martin Avison (27) 1417 posts |
I did have a look for that, but obviously got the wrong thing. Now downloaded with Netsurf! Thanks Stuart. |
David Pitt (3386) 1248 posts |
Oops, that fixed it. Filetype mappings do not appear to be working, for example sprites are text with comma separated ,ff9. To avoid the WimpSlot thing a frequently used ploy is to set an alias which includes the required size. For example :- | !Boot | For !git | Set Git$Dir <Obey$Dir> IconSprites <Git$Dir>.!Sprites Set Alias$git WimpSlot -min 1600k|MRun <Git$Dir>.git %%*0 Set git$Path <Obey$Dir>. | !Run | For !git | /<Obey$Dir>.!Boot | If "<git$Path>" = "" Then Set Run$Path <Run$Path>,git: | Set git$Path <Obey$Dir>. Pinched from |
Kevin Swinton (6267) 25 posts |
The filetypes aren’t being set automatically at the moment – if you want to see filetypes applied, execute the command manually: “git filetype —apply”. If you look at the !git.mappings file you’ll see a simple list of mappings currently defined, e.g. “basic = ffb”. This needs a little work at the moment, because the code needs to allow for more comprehensive mappings (e.g. to ensure that “ff9” gets turned into Sprite files). With the FormEd repository checked out, if you want to give it a quick check to see the functionality working, add an extra line to !git.mappings “feb = feb”, and then run “git filetype —apply”; you’ll see that !Boot and !Run files will then get set up correctly. Obviously one of the many areas that’s being worked on at the mo. Eventually this will all get wired up into git commands like “clone” and “checkout” to make it all work smoothly for us. |
David J. Ruck (33) 1495 posts |
Arrh, clicking on the links just go around in circles on RISC OS Netsurf, have to switch to Linux to get it. |
David Ruck (33) 1 post |
How close is ssh support? Far enough away for me to look in to setting up a nginx on a Pi as a git web server? |
Kevin Swinton (6267) 25 posts |
Haven’t looked into SSH yet – I’m working toward a 1.0 release at the moment (working on basic “git diff” command, which has thrown up an interesting bug in libgit2 that I’m currently trying to get the libgit2 people to understand and accept a Pull Request on!). Then it’s on to “git rebase” and “git submodule” functionality, at which point 1.0 will go out the door as the first official release. Once it’s out, I am hoping people will use it and then feed back their early experiences, and most importantly requirements for 1.1 – I can then prioritise for the community what needs doing next. I suspect SSH support will be high on that list! |
Paolo Fabio Zaino (28) 1792 posts |
Hi, |
mikko (3145) 120 posts |
Putting a link to the state of git thread here in case OP is still actively working on this. |
Andrew McCarthy (3688) 575 posts |
:) Good spot. Kevin’s done some cool stuff with Git. :) |