Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
f364d4a1
Commit
f364d4a1
authored
Jan 22, 2017
by
Matthew Brett
Browse files
Add checkout of tag in fill_submodule
parent
02efabe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/test_fill_submodule.sh
tests/test_fill_submodule.sh
+5
-2
No files found.
tests/test_fill_submodule.sh
View file @
f364d4a1
...
...
@@ -8,7 +8,8 @@ mkdir project
echo
"Interesting!"
>
README.txt
&&
git add README.txt
&&
local_author
&&
git commit
-m
"first project"
)
git commit
-m
"first project"
&&
git tag first-commit
)
mkdir
superproject
cd
superproject
git init
...
...
@@ -27,8 +28,10 @@ cd project
[
"
$(
git log
--format
=
"%s"
)
"
==
"first project"
]
||
ingest
"bad after filling"
[
-d
.git
]
||
ingest
"expecting .git to be a directory"
[
"
$(
git config
--get
remote.origin.url
)
"
==
"
$remote_url
"
]
||
ingest
"bad remote"
# Check we can do a checkout
# Check we can do a checkout
of a branch
git checkout master
# Checkout a tag
git checkout first-commit
cd
..
# Intervene again (has .git directory now)
fill_submodule project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment