From 254f79336fe637d64d41fcb652858bae3ac1f944 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 2 May 2018 00:24:45 +0000 Subject: [PATCH] Add support for gcc as git submodule of another repository. contrib/ * gcc_update: Check for .git as a file. From-SVN: r259819 --- contrib/ChangeLog | 4 ++++ contrib/gcc_update | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 7575dd9d10d..d4fe5a44693 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2018-05-01 Jim Wilson + + * gcc_update: Check for .git as a file. + 2018-03-21 Christophe Lyon * test_summary: Match possible single quotes in configure path. diff --git a/contrib/gcc_update b/contrib/gcc_update index a33bb543902..c9c71548f53 100755 --- a/contrib/gcc_update +++ b/contrib/gcc_update @@ -286,7 +286,7 @@ p esac # Check for known version control systems. -if [ -d .git ]; then +if [ -d .git ] || [ -f .git ]; then GCC_GIT=${GCC_GIT-${GIT-git}} vcs_type="git" elif [ -d .hg ]; then -- 2.30.2