]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add support for gcc as git submodule of another repository.
authorJim Wilson <jimw@sifive.com>
Wed, 2 May 2018 00:24:45 +0000 (00:24 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 2 May 2018 00:24:45 +0000 (17:24 -0700)
contrib/
* gcc_update: Check for .git as a file.

From-SVN: r259819

contrib/ChangeLog
contrib/gcc_update

index 7575dd9d10d6e5e91da1d63ee29ba3897adfc0e4..d4fe5a44693a385492dd245e30ae388f498b94da 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-01  Jim Wilson  <jimw@sifive.com>
+
+       * gcc_update: Check for .git as a file.
+
 2018-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
 
        * test_summary: Match possible single quotes in configure path.
index a33bb543902489e055b4de1a3dbbf0894adbe610..c9c71548f53efe7c5a3bc3c2b2f433723d85b825 100755 (executable)
@@ -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