Skip to content

Commit

Permalink
Item14033: revert the revert
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jun 3, 2016
1 parent 82175c0 commit 19a37e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tools/develop/githooks/pre-commit
Expand Up @@ -282,11 +282,11 @@ sub checkFILEATTACHMENT {
) unless ( $auth eq 'ProjectContributor' );
my $date = $attrs->{date} || 0;
my $t = time;
push( @$err, "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;
push( @$err, "version must be 1" )
push( @$err, "FILEATTACHMENT$name: version must be 1" )
unless $attrs->{version} eq '1';
}
}
Expand Down

0 comments on commit 19a37e2

Please sign in to comment.