generate_source_tarball.sh: Only add --depth=1 on non-local repositories
Related: RHEL-30937
This commit is contained in:
parent
a06e65fcd0
commit
dedefd6cfe
@ -217,7 +217,13 @@ mkdir "${FILE_NAME_ROOT}"
|
||||
pushd "${FILE_NAME_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}"
|
||||
|
||||
|
@ -2925,6 +2925,7 @@ cjc.mainProgram(args)
|
||||
- generate_source_tarball.sh: Add quoting for SCRIPT_DIR and JCONSOLE_PATCH (SC2086)
|
||||
- generate_source_tarball.sh: Update examples in header for clarity
|
||||
- generate_source_tarball.sh: Create directory in TMPDIR when using WITH_TEMP
|
||||
- generate_source_tarball.sh: Only add --depth=1 on non-local repositories
|
||||
- Sync patch set with portable build
|
||||
- Related: RHEL-30937
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user