Board index FlightGear Support Compiling

How to clone source from SourceForge?

Building FlightGear from source, and in the need for help?

How to clone source from SourceForge?

Postby starvi » Fri May 21, 2021 5:25 am

sorry if it seems really silly but I just can't clone the release tree of FlightGear from sourceforge.
i tried both github desktop and git bash with the given http and git access on https://sourceforge.net/p/flightgear/flightgear/ci/release/2020.3/~/tree/ but receive the error message
"fatal: remote error: access denied or repository not exported: /p/flightgear/flightgear flightgear-flightgear"

any help appreciated
starvi
 
Posts: 12
Joined: Fri May 21, 2021 5:13 am

Re: How to clone source from SourceForge?

Postby Patrickt » Sat May 22, 2021 12:10 am

Hi starvi,

There are no silly questions, thanks for reaching out! It sounds like you are cloning from the address https://sourceforge.net/p/flightgear/flightgear/ci/release/2020.3/~/tree/, this indeed fails for me, I think that is because that address refers to a specific version of the repository and cloning is performed on the repository itself. I used the address [url]git clone https://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear[/url], successfully (i.e. `git clone git clone https://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear`). If you are seeking the code of the 2020.3 release branch you can then navigate into the repository on your computer and run `git checkout release/2020.3`. Hope this helps, please reach out again should any of this be unclear or should you have additional questions.

As a side note, the wiki has instructions on building FlightGear which will cover the git commands to use to get the simulator functioning (see [1]).

EDIT: I found the command to use to clone and the address of the repository just above the file browser for the code on the right where it says "HTTPS access"

Cheers,

Patrick T.

[1] https://wiki.flightgear.org/Building_FlightGear
Patrickt
 
Posts: 10
Joined: Thu Jan 21, 2021 12:45 am
Location: Canada

Re: How to clone source from SourceForge?

Postby starvi » Sat May 22, 2021 4:49 am

hi patrickt,

thanks for replying, but when i say i tried the git access on https://sourceforge.net/p/flightgear/flightgear/ci/release/2020.3/~/tree/, what i meant was i tried both
Code: Select all
git clone https://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear

and
Code: Select all
git clone git://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear

and both returns the same error

sorry for the confusion
starvi
 
Posts: 12
Joined: Fri May 21, 2021 5:13 am

Re: How to clone source from SourceForge?

Postby Hooray » Sat May 22, 2021 12:58 pm

both are working correctly here
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: How to clone source from SourceForge?

Postby Patrickt » Sat May 22, 2021 3:02 pm

All good, I wanted to make sure we were on the same page (or links ;) ).

As with Hooray, both those links work on my end too, I am using git version `2.27.0` (from `git --version`). If you are comfortable with using Gitlab's service instead, I would encourage you to try cloning from that mirror to see if you are still encountering the errors, the link to see all the repositories is https://gitlab.com/flightgear. The command below is the Gitlab repository corresponding to the one you used in SourceForge:

Code: Select all
git clone https://gitlab.com/flightgear/flightgear


If that doesn't work (and especially if it is the same error), I suspect it may be due to something related to git. In that case, it would be helpful to me if you could share more details on the error (e.g., if it is a few lines: copy and paste it as a post, or if it is longer: using a link to a service like https://pastebin.com/, or a link to a screenshot)

Clear skies,

Patrick T.
Patrickt
 
Posts: 10
Joined: Thu Jan 21, 2021 12:45 am
Location: Canada

Re: How to clone source from SourceForge?

Postby starvi » Sun May 23, 2021 9:13 am

hey Patrick,

the code/link with gitlab works!

thanks!
starvi
 
Posts: 12
Joined: Fri May 21, 2021 5:13 am

Re: How to clone source from SourceForge?

Postby starvi » Wed Jun 16, 2021 5:06 am

just an update.. turns out the links work but git bash required. i was trying to clone with github desktop previously, since they uses gitclone, but i guess its different
starvi
 
Posts: 12
Joined: Fri May 21, 2021 5:13 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests