Remove /p from default git-url

This is apparently not the done thing anymore.

Change-Id: I5d88dabbc7944f2ad67112a1ead14c11836fcfdb
This commit is contained in:
James E. Blair 2020-09-01 11:13:03 -07:00
parent f49f27db59
commit d8adb768e2
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ servers:
# Gertty will not modify them unless you tell it to, and even then the
# normal git protections against losing work remain in place. [required]
# git-root: ~/git/
# The URL to clone git repos. By default, <url>/p/<project> is used. For a list
# The URL to clone git repos. By default, <url>/<project> is used. For a list
# of valid URLs, see:
# https://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS
# git-url: ssh://user@example.org:29418

View File

@ -184,7 +184,7 @@ class Config(object):
# And this is to allow Git callouts
os.environ['GIT_SSL_CAINFO'] = self.ssl_ca_path
self.git_root = os.path.expanduser(server['git-root'])
git_url = server.get('git-url', self.url + 'p/')
git_url = server.get('git-url', self.url)
if not git_url.endswith('/'):
git_url += '/'
self.git_url = git_url