Index: modules/cvslog/xcvs/xcvs-db.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cvslog/xcvs/xcvs-db.php,v retrieving revision 1.1.4.3 diff -u -p -r1.1.4.3 xcvs-db.php --- modules/cvslog/xcvs/xcvs-db.php 12 Nov 2006 07:57:44 -0000 1.1.4.3 +++ modules/cvslog/xcvs/xcvs-db.php 29 Nov 2006 01:16:23 -0000 @@ -49,6 +49,12 @@ function xcvs_db_get_drupal_uid($user) { * file belongs to. */ function xcvs_db_get_drupal_project_nid($file, $xcvs) { + if ($xcvs['cvs_repo_id'] == 1) { + // Hack for drupal.org: everything in the core repository (1) + // belongs to the core project (nid 3060), so don't bother asking + // the DB (since it'll fail, due to the "CVS directory" being "/"). + return 3060; + } static $nids = array(); if (!isset($nids[$file])) { $parts = explode("/", $file);