--- xcvs-config.php	2007-12-06 09:19:16.000000000 -0700
+++ xcvs-config.php	2008-01-07 17:46:34.000000000 -0700
@@ -36,6 +36,10 @@ $xcvs['repo_id'] = 1;
 // usernames (not the Drupal username if they're different).
 $xcvs['allowed_users'] = array();
 
+// If you run a multisite installation, specify the directory
+// name that your settings.php file resides in (ex: www.example.com)
+// If you use the default settings.php file, leave this blank.
+$xcvs['multisite_directory'] = '';
 
 // ------------------------------------------------------------
 // Access control
@@ -56,6 +60,8 @@ EOF;
 // ------------------------------------------------------------
 
 function xcvs_bootstrap($drupal_path) {
+  global $xcvs_global;
+
   // add $drupal_path to current value of the PHP include_path
   set_include_path(get_include_path() . PATH_SEPARATOR . $drupal_path);
 
@@ -67,6 +73,12 @@ function xcvs_bootstrap($drupal_path) {
     fwrite(STDERR, "Error: failed to load Drupal's bootstrap.inc file.\n");
     exit(1);
   }
+
+  // Set up the multisite directory if necessary.
+  if ($xcvs_global['multisite_directory']) {
+    $_SERVER['HTTP_HOST'] = $xcvs_global['multisite_directory'];
+  }
+
   require_once './includes/bootstrap.inc';
   drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 
