projtool.pl: accept --force with sethead for new branch
commit9ca5fc85965b33b062b70f8dc7ebbcc7e6e581e9
authorKyle J. McKay <mackyle@gmail.com>
Wed, 18 Aug 2021 10:28:15 +0000 (18 03:28 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 18 Aug 2021 10:28:15 +0000 (18 03:28 -0700)
tree707a7061f5a72ae08d863985c154570d671136b1
parent55fd4d560864deee38a9e616b94f54c20791eb2d
projtool.pl: accept --force with sethead for new branch

There's no reason not to allow a different unborn branch name
to be set provided that's the intent.

Allow a non-existent branch name to be used with `--force`
provided it passes the valid_branch_name check.

All the code to properly handle an unborn HEAD already exists
since that's been the default state of new push projects for
some time.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/projtool.pl