mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-24 00:32:56 +00:00
get_sources: Follow redirects
This is general best practice, and would have avoided the
need for 696c29f5c9
(I tested with that commit reverted)
This commit is contained in:
parent
bd83a7926b
commit
552ca48e93
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ while read -r fsha fname ; do
|
||||||
for br in "${branches[@]}"
|
for br in "${branches[@]}"
|
||||||
do
|
do
|
||||||
br=$(echo ${br}| sed -e s'|remotes/origin/||')
|
br=$(echo ${br}| sed -e s'|remotes/origin/||')
|
||||||
curl ${QUIET} -f "${SURL}/${pn}/${br}/${fsha}" -o "${fname}" && break
|
curl -L ${QUIET} -f "${SURL}/${pn}/${br}/${fsha}" -o "${fname}" && break
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "${fname} exists. skipping"
|
echo "${fname} exists. skipping"
|
||||||
|
|
Loading…
Add table
Reference in a new issue