File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 4141# Variables.
4242env :
4343 package : diffutils
44- # URL suitable for 'git clone'
45- # gnulib_url: https://git.savannah.gnu.org/git/gnulib.git
46- gnulib_url : https://github.com/coreutils/gnulib.git
4744 # URL prefix suitable for downloading individual files through 'wget'
4845 # gnulib_url_prefix: https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;hb=HEAD;f=
4946 gnulib_url_prefix : https://raw.githubusercontent.com/coreutils/gnulib/refs/heads/master/
Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ package="$1"
2323
2424set -e
2525
26+ . ./init-git.sh
27+
2628# Fetch sources (uses package 'git').
27- git clone --depth 1 https://https. git.savannah.gnu.org/git/" $package " .git
28- git clone --depth 1 " ${gnulib_url} "
29+ git clone --depth 1 https://git.savannah.gnu.org/git/" $package " .git
30+ git clone --depth 1 https://git.savannah.gnu.org/git/gnulib.git
2931export GNULIB_SRCDIR=` pwd` /gnulib
3032
3133# Apply patches.
Original file line number Diff line number Diff line change 1+ # Mapping from canonical git server URLs to more efficient read-only mirrors.
2+ # See
3+ # https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf
4+ # https://git-scm.com/docs/git-clone#_git_urls
5+ git config set --global --append url.git://git.git.savannah.gnu.org/.insteadOf git://git.savannah.gnu.org/
6+ git config set --global --append url.https://https.git.savannah.gnu.org/git/.insteadOf https://git.savannah.gnu.org/git/
7+ git config set --global --append url.https://github.com/coreutils/gnulib.git.insteadOf git://git.savannah.gnu.org/gnulib.git
8+ git config set --global --append url.https://github.com/coreutils/gnulib.git.insteadOf https://git.savannah.gnu.org/git/gnulib.git
You can’t perform that action at this time.
0 commit comments