chiark / gitweb /
wip; tidy; check no unwanted metadata
[topbloke.git] / tb-create.pl
index 15b22086c5d7bd9f55e06c74da5590183786e74b..79d42749015088e8e6c883348733bad87dcbc7af 100755 (executable)
@@ -41,7 +41,8 @@ if (!defined $spec->{Date}) {
 
 length($spec->{Date})==18 or die "partial date specified, not supported\n";
 
-fixme check foreign base branch for unwanted topbloke files
+check_no_unwanted_metadata('HEAD')
+    if $current->{Kind} ne 'tip';
 
 my $newbranch = "$spec->{Email}\@$spec->{Domain}/$spec->{Date}/$spec->{Nick}";
 
@@ -50,3 +51,4 @@ $newbranch = run_git_1line(qw(check-ref-format --print), $newbranch);
 printf "creating %s\n", $newbranch;
 
 setup_config();
+