bootstrap: name the current branch the same as the remote
This commit is contained in:
parent
89bf5f4045
commit
e3e94f0ac9
@ -96,6 +96,7 @@ def bootstrap(parser, args):
|
|||||||
git('fetch', 'origin', '%s:refs/remotes/origin/%s' % (branch, branch),
|
git('fetch', 'origin', '%s:refs/remotes/origin/%s' % (branch, branch),
|
||||||
'-n', '-q')
|
'-n', '-q')
|
||||||
git('reset', '--hard', 'origin/%s' % branch, '-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,
|
tty.msg("Successfully created a new spack in %s" % prefix,
|
||||||
"Run %s/bin/spack to use this installation." % prefix)
|
"Run %s/bin/spack to use this installation." % prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user