@@ -683,7 +683,7 @@ sub evaluate_gitweb_config {
683683 our $GITWEB_CONFIG_SYSTEM = $ENV {' GITWEB_CONFIG_SYSTEM' } || " ++GITWEB_CONFIG_SYSTEM++" ;
684684 our $GITWEB_CONFIG_COMMON = $ENV {' GITWEB_CONFIG_COMMON' } || " ++GITWEB_CONFIG_COMMON++" ;
685685
686- # Protect agains duplications of file names, to not read config twice.
686+ # Protect against duplications of file names, to not read config twice.
687687 # Only one of $GITWEB_CONFIG and $GITWEB_CONFIG_SYSTEM is used, so
688688 # there possibility of duplication of filename there doesn't matter.
689689 $GITWEB_CONFIG = " " if ($GITWEB_CONFIG eq $GITWEB_CONFIG_COMMON );
@@ -1136,7 +1136,7 @@ sub handle_errors_html {
11361136
11371137 # to avoid infinite loop where error occurs in die_error,
11381138 # change handler to default handler, disabling handle_errors_html
1139- set_message(" Error occured when inside die_error:\n $msg " );
1139+ set_message(" Error occurred when inside die_error:\n $msg " );
11401140
11411141 # you cannot jump out of die_error when called as error handler;
11421142 # the subroutine set via CGI::Carp::set_message is called _after_
@@ -7485,7 +7485,7 @@ sub git_object {
74857485 system (git_cmd(), " cat-file" , ' -e' , $hash_base ) == 0
74867486 or die_error(404, " Base object does not exist" );
74877487
7488- # here errors should not hapen
7488+ # here errors should not happen
74897489 open my $fd , " -|" , git_cmd(), " ls-tree" , $hash_base , " --" , $file_name
74907490 or die_error(500, " Open git-ls-tree failed" );
74917491 my $line = <$fd >;
0 commit comments