mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22: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[@]}"
|
||||
do
|
||||
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
|
||||
else
|
||||
echo "${fname} exists. skipping"
|
||||
|
|
Loading…
Add table
Reference in a new issue