RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Announcements →

git

Subscribe to git 20 posts, 11 voices

 
Apr 1, 2020 10:54am
Avatar 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.

 
Apr 1, 2020 11:17am
Avatar Martin Avison (27) 1337 posts

That link just gives me ’Couldn’t resolve host name’.

 
Apr 1, 2020 11:32am
Avatar 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).

 
Apr 1, 2020 2:49pm
Avatar Julie Stamp (8365) 441 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
*git init

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 :-)

 
Apr 1, 2020 2:57pm
Avatar Martin Avison (27) 1337 posts

I can now see the web pages, but cannot get the downloads to work in Netsurf v3.9.

 
Apr 1, 2020 3:24pm
Avatar 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).

 
Apr 1, 2020 3:48pm
Avatar Martin Avison (27) 1337 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.

 
Apr 1, 2020 3:57pm
Avatar 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 can clone from ROOL’s git repository without any username or password :-

*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 results in fatal: No credentials found in config :-

*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?

 
Apr 1, 2020 4:08pm
Avatar 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.

 
Apr 1, 2020 4:12pm
Avatar Rick Murray (539) 12383 posts

a WimpSlot needs increasing to 1600k.

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…

Wimpslot not big enough to run ELF program

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

 
Apr 1, 2020 4:35pm
Avatar Stuart Painting (5389) 604 posts

I suspect Wordpress uses some weird way of ‘managing’ downloads using some javascript

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.

 
Apr 1, 2020 4:43pm
Avatar Martin Avison (27) 1337 posts

Once you’ve wrestled the URL

I did have a look for that, but obviously got the wrong thing. Now downloaded with Netsurf! Thanks Stuart.

 
Apr 1, 2020 4:46pm
Avatar David Pitt (3386) 1248 posts

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

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 !SimpleGit.

 
Apr 1, 2020 6:11pm
Avatar 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.

 
Apr 17, 2020 12:45am
Avatar David J. Ruck (33) 1242 posts

Arrh, clicking on the links just go around in circles on RISC OS Netsurf, have to switch to Linux to get it.

 
Apr 18, 2020 12:56am
Avatar 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?

 
Apr 24, 2020 10:19am
Avatar 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!

 
Apr 29, 2020 11:41pm
Avatar Paolo Fabio Zaino (28) 1368 posts

Hi,
not sure if this is useful to anyone, however the link at the top works fine when using QupZilla Browser on RISC OS (I downloaded git and the PDF fine on a mini.m)

 
Jan 20, 2021 11:14am
Avatar mikko (3145) 113 posts

Putting a link to the state of git thread here in case OP is still actively working on this.

 
Jan 20, 2021 1:49pm
Avatar Andrew McCarthy (3688) 461 posts

:) Good spot. Kevin’s done some cool stuff with Git. :)

Reply

To post replies, please first log in.

Forums → Announcements →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Announce and discuss new hardware and software releases.

Voices

  • Kevin Swinton (6267)
  • Martin Avison (27)
  • Julie Stamp (8365)
  • David Pitt (3386)
  • Rick Murray (539)
  • Stuart Painting (5389)
  • David J. Ruck (33)
  • David Ruck (33)
  • Paolo Fabio Zaino (28)
  • mikko (3145)
  • Andrew McCarthy (3688)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys