From b557e0d39f3d3125a44d2a60a30174fe59eb07cd Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 30 Sep 2024 18:28:17 +0200 Subject: [PATCH] Use https:// instead of git:// in git URLs. Resolves: RHEL-61086 --- gcc.spec | 2 +- update-gcc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc.spec b/gcc.spec index b1bc084..4bc4e33 100644 --- a/gcc.spec +++ b/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 diff --git a/update-gcc.sh b/update-gcc.sh index 93160c9..47d7d70 100755 --- a/update-gcc.sh +++ b/update-gcc.sh @@ -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'`