[gcc(refs/vendors/redhat/heads/gcc-8-branch)] Backport: Add support for gcc as git submodule of another repository.
Jakub Jelinek
jakub@gcc.gnu.org
Thu Sep 17 16:35:17 GMT 2020
https://gcc.gnu.org/g:fd7973fda4439e4b64f19052aa741b02f5974eba
commit fd7973fda4439e4b64f19052aa741b02f5974eba
Author: Jim Wilson <jimw@sifive.com>
Date: Wed May 2 00:24:45 2018 +0000
Backport: Add support for gcc as git submodule of another repository.
contrib/
* gcc_update: Check for .git as a file.
Diff:
---
contrib/ChangeLog | 7 +++++++
contrib/gcc_update | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 039dc251ebb..47ac7c47dcc 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,10 @@
+2020-01-15 Richard Earnshaw <rearnsha@arm.com>
+
+ Backport:
+ 2018-05-01 Jim Wilson <jimw@sifive.com>
+
+ * gcc_update: Check for .git as a file.
+
2019-08-16 Uros Bizjak <ubizjak@gmail.com>
* test_summary: Do not escape "=".
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
More information about the Gcc-cvs
mailing list