risc os source code
Colin (478) 2433 posts |
Is it possible to get source code from the git repository without an account. I tried following Beginner’s guide to ROM builds but get
when I try to clone. If I try to download source code from the links on the web pages I just get empty directories. I’m probably doing something wrong – though I can download code from links on, for example, github websites ok without an account. I’m new to git. Still trying to work out what ’We’re throwing open the doors to our lab’ actually means. Presumably I can’t just get an account and commit changes to riscos. What can I do that I couldn’t before? I’m finding it difficult to work out any kind of workflow with the riscos git repository – it’ll all be obvious one day. |
Jeffrey Lee (213) 6048 posts |
Try using the HTTPS URL instead – I didn’t realise that SSH would complain if you didn’t have an account. ROOL also have their own cheatsheet: https://www.riscosopen.org/content/documents/git-cheatsheet |
David Pitt (3386) 1248 posts |
This works on the Mac, with thanks to Jeffrey. git clone https://gitlab.riscosopen.org/Products/BCM2835 BCM2835Dev cd BCM2835Dev git submodule init git submodule update --remote tar/bz2 it then pass it over to RISC OS and build in the usual way. HTH. |
Colin (478) 2433 posts |
Thanks. The git clone http method seems to work fine. With a bit of experimentation I figure using sgit on riscos looks the easiest way forward. I’m having problems with sgit though. Cloning seems fine – I cloned OmniLanManFS and it compiled without any problems but after cloning ‘sgit status’ shows all the files deleted and ‘sgit diff’ lists every line in all files removed. Using git to clone on linux doesn’t list any files in ‘git status’ and ‘git diff’ doesn’t show any diffs which I suppose is what you would expect. So a question for you Jeffrey – as you ported sgit – is sgit worth persevering with as a versioning system in its present state or am I better off just using sgit to clone and importing the downloaded files into cvs. |
Jeffrey Lee (213) 6048 posts |
sgit assumes the git repository is going to be using a unix-like structure (e.g. a file called foo.c), but ROOL’s repositories are using a RISC OS structure (e.g. a folder called c containing a file called foo). I think you need to set UnixEnv$sgit$sfix to an empty string for it to work correctly (see the help file for more info).
For the RISC OS source code? No. it’s missing an equivalent for “git submodule update —remote”, so you won’t be able to (easily?) get the latest versions of the submodules. For other projects, sgit should be OK. |