From 284595020221b3d03447967db7bd0b74395f0b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 9 Apr 2018 08:40:28 +0200 Subject: [PATCH] Use git submodules for extensions Now instead of manually cloning them in the `extensions` folder, you can run `git submodule update --init`. You can also define what commit/branch/tag to track if the tip of the master branch is not suitable for production. --- .gitmodules | 6 ++++++ README.md | 7 +++---- extensions/.gitignore | 4 ---- extensions/QtFirebase | 1 + extensions/qak | 1 + 5 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .gitmodules delete mode 100644 extensions/.gitignore create mode 160000 extensions/QtFirebase create mode 160000 extensions/qak diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7dd872e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "extensions/qak"] + path = extensions/qak + url = https://github.com/Larpon/qak.git +[submodule "extensions/QtFirebase"] + path = extensions/QtFirebase + url = https://github.com/Larpon/QtFirebase.git diff --git a/README.md b/README.md index 6ebb179..290c637 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,11 @@ Once you have a fully working Qt/Qt Creator setup - you are ready to checkout an cd /path/to/projects git clone git@github.com:Larpon/DeadAscend.git ``` -2. Install project dependencies +2. Retrieve project dependencies ``` - cd /path/to/projects/DeadAscend/extensions/ - git clone git@github.com:Larpon/qak.git - git clone git@github.com:Larpon/QtFirebase.git + cd /path/to/projects/DeadAscend + git submodule update --init ``` **NOTE**
diff --git a/extensions/.gitignore b/extensions/.gitignore deleted file mode 100644 index 5e7d273..0000000 --- a/extensions/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -# Ignore everything in this directory -* -# Except this file -!.gitignore diff --git a/extensions/QtFirebase b/extensions/QtFirebase new file mode 160000 index 0000000..7fa07c1 --- /dev/null +++ b/extensions/QtFirebase @@ -0,0 +1 @@ +Subproject commit 7fa07c112b6043afdc602ccf2263d505c362dabc diff --git a/extensions/qak b/extensions/qak new file mode 160000 index 0000000..d9e98a0 --- /dev/null +++ b/extensions/qak @@ -0,0 +1 @@ +Subproject commit d9e98a051e91b4277ccd716292267878a8c18d74