Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 3.04 KB

File metadata and controls

75 lines (60 loc) · 3.04 KB

Gitolite

Supported on [Enterprise](/pricing/plans/enterprise) plans. Available via the Web app.

NOTE: While it is possible to connect Gitolite repositories to Sourcegraph, we currently do not recommend it. If you have specific questions, please discuss with your account team.

Site admins can link and sync Git repositories on Gitolite with Sourcegraph so that users can search and navigate the repositories.

To connect Gitolite to Sourcegraph:

  1. Set up git SSH authentication for your gitolite server.
  2. Go to Site admin > Manage code hosts > Add repositories
  3. Select Gitolite.
  4. Configure the connection to Gitolite using the action buttons above the text field, and additional fields can be added using Cmd/Ctrl+Space for auto-completion. See the configuration documentation below.
  5. Press Add repositories.

Configuration

{/*

View page on sourcegraph.com/docs to see rendered content.
*/}

admin/code_hosts/gitolite.schema.json

{/* SCHEMA_SYNC_START: admin/code_hosts/gitolite.schema.json /} {/ WARNING: This section is auto-generated during releases. Do not edit manually. /} {/ Last updated: 2026-04-14T00:48:03Z */}

{
	// A list of repositories to never mirror from this Gitolite instance. Supports excluding by exact name ({"name": "foo"}).
	// Other example values:
	// - [
	//     {
	//       "name": "myrepo"
	//     },
	//     {
	//       "pattern": ".*secret.*"
	//     }
	//   ]
	"exclude": null,

	// SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
	"gitSSHCipher": null,

	// SSH keys to use when cloning Git repo.
	"gitSSHCredential": null,

	// REQUIRED:
	// Gitolite host that stores the repositories (e.g., git@gitolite.example.com, ssh://git@gitolite.example.com:2222/).
	// Other example values:
	// - "git@gitolite.example.com"
	// - "ssh://git@gitolite.example.com:2222/"
	"host": null,

	// ⚠️  DEPRECATED: DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
	// DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
	"phabricator": {
		"callsignCommand": null,
		"url": null
	},

	// ⚠️  DEPRECATED: DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
	// DEPRECATED: the Phabricator integration with Gitolite code hosts is deprecated
	"phabricatorMetadataCommand": null,

	// REQUIRED:
	// Repository name prefix that will map to this Gitolite host. This should likely end with a trailing slash. E.g., "gitolite.example.com/".
	// It is important that the Sourcegraph repository name generated with this prefix be unique to this code host. If different code hosts generate repository names that collide, Sourcegraph's behavior is undefined.
	// Other example values:
	// - "gitolite.example.com/"
	"prefix": null
}

{/* SCHEMA_SYNC_END: admin/code_hosts/gitolite.schema.json */}