Commit f364d4a1 authored by Matthew Brett's avatar Matthew Brett
Browse files

Add checkout of tag in fill_submodule

parent 02efabe6
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment