mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 11:21:59 +00:00
currency: Use https for git remote, and only fetch history since r11.2
It can save some network download time.
This commit is contained in:
parent
19ff1dadd1
commit
bf7d32821e
@ -344,13 +344,15 @@ function get_current()
|
|||||||
// Fetech from git and get wget-list
|
// Fetech from git and get wget-list
|
||||||
$current = array();
|
$current = array();
|
||||||
#$lfssvn = "svn://svn.linuxfromscratch.org/LFS/trunk";
|
#$lfssvn = "svn://svn.linuxfromscratch.org/LFS/trunk";
|
||||||
$lfsgit = "git://git.linuxfromscratch.org/lfs.git";
|
$lfsgit = "https://git.linuxfromscratch.org/lfs.git";
|
||||||
|
|
||||||
$tmpdir = exec( "mktemp -d /tmp/lfscheck.XXXXXX" );
|
$tmpdir = exec( "mktemp -d /tmp/lfscheck.XXXXXX" );
|
||||||
$cdir = getcwd();
|
$cdir = getcwd();
|
||||||
chdir( $tmpdir );
|
chdir( $tmpdir );
|
||||||
#exec ( "svn --quiet export $lfssvn LFS" );
|
|
||||||
exec ( "git clone $lfsgit LFS" );
|
# git-version.sh needs the history since the rx.y tag.
|
||||||
|
exec ( "git clone $lfsgit LFS --depth 1 --branch r11.2" );
|
||||||
|
exec ( "git -C LFS pull origin trunk" );
|
||||||
|
|
||||||
# Make version.ent
|
# Make version.ent
|
||||||
chdir( "$tmpdir/LFS" );
|
chdir( "$tmpdir/LFS" );
|
||||||
|
Loading…
Reference in New Issue
Block a user