#!/usr/bin/perl
+# usage: tb-create <branch-spec>
use warnings;
use strict;
my $baseref = "refs/topbloke-bases/$newbranch";
create_and_switch($baseref);
-run_git(qw(update-ref -m), "tb-create base", $baseref, 'HEAD');
+run_git(qw(update-ref -m), "tb-create base $newbranch", $baseref, 'HEAD');
run_git(qw(symbolic-ref HEAD), $baseref);
meta_and_stage('msg', "# not applicable\n");
meta_and_stage('pflags', '');
}
-run_git(qw(commit -q -m), "create base branch $spec->{Nick}\n$newbranch\n");
+run_git(qw(commit -q -m), "create base branch $newbranch");
#----- create the tip branch