format_sanitized_subject: Don't trim past initial length of strbuf
[gitweb.git] / git-cvsserver.perl
index 277ee4e47729ecfec887c1c2ec16d4f6f51eee43..ab6cea3e538047c30a5d728c7a16ee3c935c070b 100755 (executable)
@@ -1414,14 +1414,14 @@ sub req_ci
                close $pipe || die "bad pipe: $! $?";
        }
 
+    $updater->update();
+
        ### Then hooks/post-update
        $hook = $ENV{GIT_DIR}.'hooks/post-update';
        if (-x $hook) {
                system($hook, "refs/heads/$state->{module}");
        }
 
-    $updater->update();
-
     # foreach file specified on the command line ...
     foreach my $filename ( @committedfiles )
     {