Skip to content

Commit

Permalink
Item14237: Tidyfied scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed May 18, 2018
1 parent b29ea40 commit a49f561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/tools/develop/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fail("No Bug item in log message\n") unless ( $logmsg =~ /^Item\d+\s*:/ );
my @items;
$logmsg =~ s/\b(Item\d+)\s*:/push(@items, $1); '';/gem;
foreach my $item (@items) {
my $url = "https://foswiki.org/Tasks/ItemStatusQuery?item=$item;skin=text";
my $url = "https://foswiki.org/Tasks/ItemStatusQuery?item=$item;skin=text";
my $state = get $url;

unless ( defined $state ) {
Expand Down
4 changes: 3 additions & 1 deletion core/tools/develop/githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ sub checkFILEATTACHMENT {
) unless ( $auth eq 'ProjectContributor' );
my $date = $attrs->{date} || 0;
my $t = time;
push( @$err, "FILEATTACHMENT$name: date must be within $WINDOW seconds of $t" )
push( @$err,
"FILEATTACHMENT$name: date must be within $WINDOW seconds of $t"
)
unless $date =~ /^\d+$/
&& abs( $t - $date ) < $WINDOW;
my $ver = $attrs->{version} || 0;
Expand Down

0 comments on commit a49f561

Please sign in to comment.