Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-qt-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qtwaylandtests
docker-qt-tests
Commits
570d26d3
Commit
570d26d3
authored
7 years ago
by
Johan Helsing
Browse files
Options
Downloads
Patches
Plain Diff
Clone submodules with depth 1 and support commit-ish
parent
7ae6990f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clone-qt.sh
+12
-4
12 additions, 4 deletions
clone-qt.sh
with
12 additions
and
4 deletions
clone-qt.sh
+
12
−
4
View file @
570d26d3
#!/bin/bash
#!/bin/bash
set
-ex
set
-ex
branch
=
5.11
#maybe set this from the Dockerfile
qt5_rev
=
5.11
#maybe set this from the Dockerfile
qtwayland_rev
=
5.11
rm
-rf
qt5
rm
-rf
qt5
git clone
--depth
1
--branch
$branch
git://code.qt.io/qt/qt5.git
mkdir
qt5
cd
qt5
cd
qt5
git submodule update
--init
--
qtbase qtxmlpatterns qtdeclarative qtwayland
git init
git remote add origin https://codereview.qt-project.org/qt/qt5.git
git fetch
--depth
1 origin
"
$qt5_rev
"
git checkout FETCH_HEAD
git submodule update
--init
--depth
1
--
qtbase qtxmlpatterns qtdeclarative qtwayland
cd
qtwayland
cd
qtwayland
git checkout
$branch
git fetch
--depth
1 origin
"
$qtwayland_rev
"
git checkout FETCH_HEAD
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment