generate_source_tarball.sh: Only add --depth=1 on non-local repositories
- Related: RHEL-52734
This commit is contained in:
parent
f685749527
commit
36507ff0e2
@ -213,7 +213,13 @@ else
|
|||||||
mkdir "${FILE_NAME_ROOT}"
|
mkdir "${FILE_NAME_ROOT}"
|
||||||
pushd "${FILE_NAME_ROOT}"
|
pushd "${FILE_NAME_ROOT}"
|
||||||
echo "Cloning ${VERSION} root repository from ${REPO_ROOT}"
|
echo "Cloning ${VERSION} root repository from ${REPO_ROOT}"
|
||||||
git clone --depth=1 -b "${VERSION}" "${REPO_ROOT}" "${VERSION}"
|
if realpath -q "${REPO_ROOT}"; then
|
||||||
|
echo "Local path detected; not adding depth argument";
|
||||||
|
else
|
||||||
|
DEPTH="--depth=1";
|
||||||
|
echo "Remote repository detected; adding ${DEPTH}";
|
||||||
|
fi
|
||||||
|
git clone ${DEPTH} -b "${VERSION}" "${REPO_ROOT}" "${VERSION}"
|
||||||
pushd "${VERSION}"
|
pushd "${VERSION}"
|
||||||
TAR_TIME="$(git log --max-count 1 --format=%cI)"
|
TAR_TIME="$(git log --max-count 1 --format=%cI)"
|
||||||
popd
|
popd
|
||||||
|
@ -2501,6 +2501,7 @@ cjc.mainProgram(args)
|
|||||||
- generate_source_tarball.sh: Update examples in header for clarity
|
- generate_source_tarball.sh: Update examples in header for clarity
|
||||||
- generate_source_tarball.sh: Cleanup message issued when checkout already exists
|
- generate_source_tarball.sh: Cleanup message issued when checkout already exists
|
||||||
- generate_source_tarball.sh: Create directory in TMPDIR when using WITH_TEMP
|
- generate_source_tarball.sh: Create directory in TMPDIR when using WITH_TEMP
|
||||||
|
- generate_source_tarball.sh: Only add --depth=1 on non-local repositories
|
||||||
- Related: RHEL-52734
|
- Related: RHEL-52734
|
||||||
|
|
||||||
* Sun Aug 04 2024 Thomas Fitzsimmons <fitzsim@redhat.com> - 1:17.0.12.0.6-0.1.ea
|
* Sun Aug 04 2024 Thomas Fitzsimmons <fitzsim@redhat.com> - 1:17.0.12.0.6-0.1.ea
|
||||||
|
Loading…
Reference in New Issue
Block a user