bootstrap: name the current branch the same as the remote

This commit is contained in:
Ben Boeckel 2016-05-31 10:55:14 -04:00
parent 89bf5f4045
commit e3e94f0ac9

View File

@ -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)