spack tutorial: fix output to screen (#27316)
Spack was checking out v0.17, the output reported v0.16
This commit is contained in:
parent
0ab5d42bd5
commit
b16bfe4f5f
@ -77,7 +77,9 @@ def tutorial(parser, args):
|
|||||||
# Note that checkout MUST be last. It changes Spack under our feet.
|
# Note that checkout MUST be last. It changes Spack under our feet.
|
||||||
# If you don't put this last, you'll get import errors for the code
|
# If you don't put this last, you'll get import errors for the code
|
||||||
# that follows (exacerbated by the various lazy singletons we use)
|
# that follows (exacerbated by the various lazy singletons we use)
|
||||||
tty.msg("Ensuring we're on the releases/v0.16 branch")
|
tty.msg("Ensuring we're on the releases/v{0}.{1} branch".format(
|
||||||
|
*spack.spack_version_info[:2]
|
||||||
|
))
|
||||||
git = which("git", required=True)
|
git = which("git", required=True)
|
||||||
with working_dir(spack.paths.prefix):
|
with working_dir(spack.paths.prefix):
|
||||||
git("checkout", tutorial_branch)
|
git("checkout", tutorial_branch)
|
||||||
|
Loading…
Reference in New Issue
Block a user