Forum > General

How to use git

(1/4) > >>

BosseB:
I see that fpcupdeluxe has had problems when the svn source server was shutdown and gitlab was started in its place....
I also have this problem with downloading release versions of fpc and lazarus sources.

I would be very grateful if someone here who knows how the gitlab functions could tell me what is the correct URL to the releases of lazarus and fpc sources.

I have spent hours trying to figure this out to no avail.
I am not a user of GIT so I know very little except when one clones a repository one gets ALL of the total history downloaded and that will be HUGE!
My existing scripts just issue a svn export for the svn release tag I want and then I get just those files.
AFAICU svn is capable of getting sources from GIT provided opne has the correct URL and this is what I have tried many hours now to find in vain....

So please give me a working example URL for Lazarus 2.0.12 and FPC 3.2.0

Ever grateful if this is provided!

trev:
1. $ git clone -b lazarus_2_0_12 https://gitlab.com/freepascal.org/lazarus/lazarus.git laz2012

2. $ git clone -b release_3_2_0 https://gitlab.com/freepascal.org/fpc/source.git fpc320

This only downloads the specified branch. Simples :)

PascalDragon:

--- Quote from: BosseB on November 22, 2021, 11:09:15 am ---I am not a user of GIT so I know very little except when one clones a repository one gets ALL of the total history downloaded and that will be HUGE!
--- End quote ---

A complete clone of the FPC repository has roughly the same size as a checkout of SVN trunk with the added benefit that you have the whole history available and that you can add multiple working directories based on the same clone (so you only have to do the full checkout once).

BosseB:

--- Quote from: trev on November 22, 2021, 12:11:37 pm ---1. $ git clone -b lazarus_2_0_12 https://gitlab.com/freepascal.org/lazarus/lazarus.git laz2012

2. $ git clone -b release_3_2_0 https://gitlab.com/freepascal.org/fpc/source.git fpc320

This only downloads the specified branch. Simples :)

--- End quote ---

So how do you find the tag names you used in the commands above?
All I find when navigating to gitlab and open the lazarus tags page are names like:
main-1_9
main-2_1
main-2_3

Nowhere I have looked do I see names like lazarus_2_0_12 or release_3_2_0
In the old repository I could navigate to a page where the actual tags were listed, is there no such page in GitLab?

Martin_fr:

--- Quote from: BosseB on November 22, 2021, 11:09:15 am ---AFAICU svn is capable of getting sources from GIT provided opne has the correct URL and this is what I have tried many hours now to find in vain....

--- End quote ---
I am not aware of this (but neither do I know that it is not so). But GitHUB offers svn access. And there are official mirrors on GitHub: https://github.com/fpc

However, the SVN feature is something provided by GitHub. We have no influence how GitHub does this, or what the result is, and there is no official support for SVN access. Nor can the SVN commit numbers be used for reference of any kind (e.g. bug reports).

GitLab (as well as GitHub) offers several methods of access.

Without GIT
Download a revision (e.g. with "wget"):
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.tar
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.tar.bz2
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.tar.gz
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.zip

branches
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/main/lazarus-main.zip
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/fixes_2_2/lazarus-fixes_2_2.zip
tags
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/lazarus_2_2_0_RC2/lazarus-lazarus_2_2_0_RC2.zip
commit
https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/6708a746c871db34cf87de0ca4ce8d6368cf5155/lazarus-6708a746c871db34cf87de0ca4ce8d6368cf5155.zip


With GIT
- view all branches (without needing to download the repo)

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---git ls-remote https://gitlab.com/freepascal.org/lazarus/lazarus.git
- to get the one commit only

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---git initgit fetch --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git  fixes_2_2git switch fixes_2_2 

Navigation

[0] Message Index

[#] Next page

Go to full version