Use https:// instead of git:// in git URLs.
Resolves: RHEL-61086
This commit is contained in:
parent
9c9959a813
commit
b557e0d39f
2
gcc.spec
2
gcc.spec
@ -171,7 +171,7 @@ Source0: gcc-%{version}-%{DATE}.tar.xz
|
||||
Source1: nvptx-tools-%{nvptx_tools_gitrev}.tar.xz
|
||||
# The source for nvptx-newlib package was pulled from upstream's vcs. Use the
|
||||
# following commands to generate the tarball:
|
||||
# git clone git://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
|
||||
# git clone https://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
|
||||
# git --git-dir=newlib-cygwin-dir.tmp/.git archive --prefix=newlib-cygwin-%%{newlib_cygwin_gitrev}/ %%{newlib_cygwin_gitrev} ":(exclude)newlib/libc/sys/linux/include/rpc/*.[hx]" | xz -9e > newlib-cygwin-%%{newlib_cygwin_gitrev}.tar.xz
|
||||
# rm -rf newlib-cygwin-dir.tmp
|
||||
Source2: newlib-cygwin-%{newlib_cygwin_gitrev}.tar.xz
|
||||
|
@ -10,9 +10,9 @@ v=`sed -n 's/^%global gcc_version //p' gcc.spec`
|
||||
p=`sed -n 's/^%global gitrev //p' gcc.spec`
|
||||
h=$1
|
||||
if [ "$#" -ge 2 ]; then
|
||||
git clone --dissociate --reference $2 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
|
||||
git clone --dissociate --reference $2 https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
|
||||
else
|
||||
git clone git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
|
||||
git clone https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
|
||||
fi
|
||||
git --git-dir=gcc-dir.tmp/.git fetch origin $h
|
||||
d=`date --iso | sed 's/-//g'`
|
||||
|
Loading…
Reference in New Issue
Block a user