diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2022-01-05 21:55:34 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2022-01-06 01:55:29 +0100 |
commit | 2e6c701850b1f3b4bdf710ddaa9ca6a1e38396d1 (patch) | |
tree | d2b773df9046b9159cea2a4c47d06ac389801a3b | |
parent | 17e3183c1a0adb7ad3e2b514a3f366bb23c29217 (diff) | |
download | findutils-2e6c701850b1f3b4bdf710ddaa9ca6a1e38396d1.tar.gz |
maint: update gnulib to latest
Run 'make update-gnulib-to-latest', mainly due to:
> license: fix GPLv3 texts to use a comma instead of semicolon.
* bootstrap: Sync from gnulib/build-aux/bootstrap.
* gnulib: Update to latest.
-rwxr-xr-x | bootstrap | 20 | ||||
m--------- | gnulib | 0 |
2 files changed, 18 insertions, 2 deletions
@@ -763,9 +763,25 @@ if $use_gnulib; then shallow= if test -z "$GNULIB_REVISION"; then git clone -h 2>&1 | grep -- --depth > /dev/null && shallow='--depth 2' + git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \ + || cleanup_gnulib + else + git fetch -h 2>&1 | grep -- --depth > /dev/null && shallow='--depth 2' + mkdir -p "$gnulib_path" + # Only want a shallow checkout of $GNULIB_REVISION, but git does not + # support cloning by commit hash. So attempt a shallow fetch by commit + # hash to minimize the amount of data downloaded and changes needed to + # be processed, which can drastically reduce download and processing + # time for checkout. If the fetch by commit fails, a shallow fetch can + # not be performed because we do not know what the depth of the commit + # is without fetching all commits. So fallback to fetching all commits. + git -C "$gnulib_path" init + git -C "$gnulib_path" remote add origin ${GNULIB_URL:-$default_gnulib_url} + git -C "$gnulib_path" fetch $shallow origin "$GNULIB_REVISION" \ + || git -C "$gnulib_path" fetch origin \ + || cleanup_gnulib + git -C "$gnulib_path" reset --hard FETCH_HEAD fi - git clone $shallow ${GNULIB_URL:-$default_gnulib_url} "$gnulib_path" \ - || cleanup_gnulib trap - 1 2 13 15 fi diff --git a/gnulib b/gnulib -Subproject 75541c6adaf6fc45541a35d2c8803b9b68f2a7f +Subproject 035ce56a3353b00d34dbbb338580ff25fb7ef76 |