diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-05-31 10:55:14 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-06-29 14:49:19 -0400 |
commit | e3e94f0ac96db3c1ddd51555fec5a2bf71b867bf (patch) | |
tree | bbef1f2a0fa98f46117b764ce238b9e6886d85f6 /lib | |
parent | 89bf5f4045eebdc1f40561dbb70a56e170411c20 (diff) | |
download | spack-e3e94f0ac96db3c1ddd51555fec5a2bf71b867bf.tar.gz spack-e3e94f0ac96db3c1ddd51555fec5a2bf71b867bf.tar.bz2 spack-e3e94f0ac96db3c1ddd51555fec5a2bf71b867bf.tar.xz spack-e3e94f0ac96db3c1ddd51555fec5a2bf71b867bf.zip |
bootstrap: name the current branch the same as the remote
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/bootstrap.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/bootstrap.py b/lib/spack/spack/cmd/bootstrap.py index 3480c96f39..04892e258d 100644 --- a/lib/spack/spack/cmd/bootstrap.py +++ b/lib/spack/spack/cmd/bootstrap.py @@ -96,6 +96,7 @@ def bootstrap(parser, args): git('fetch', 'origin', '%s:refs/remotes/origin/%s' % (branch, branch), '-n', '-q') git('reset', '--hard', 'origin/%s' % branch, '-q') + git('checkout', '-B', branch, 'origin/%s' % branch, '-q') tty.msg("Successfully created a new spack in %s" % prefix, "Run %s/bin/spack to use this installation." % prefix) |