From 007a3462cadf18da4173449d891db54a8243725d Mon Sep 17 00:00:00 2001 From: Jonathan Duck Date: Wed, 13 Jan 2016 04:31:16 -0800 Subject: [PATCH] Allow Gogs server on a subdirectory --- docs/setup/gogs.md | 3 ++- remote/gogs/gogs.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/setup/gogs.md b/docs/setup/gogs.md index 736cabc8e..c33aa6a3a 100644 --- a/docs/setup/gogs.md +++ b/docs/setup/gogs.md @@ -12,7 +12,7 @@ REMOTE_CONFIG=https://gogs.hooli.com?open=false The following is the standard URI connection scheme: ``` -scheme://host[:port][?options] +scheme://host[:port][/path][?options] ``` The components of this string are: @@ -20,6 +20,7 @@ The components of this string are: * `scheme` server protocol `http` or `https`. * `host` server address to connect to. The default value is github.com if not specified. * `:port` optional. The default value is :80 if not specified. +* `/path` optional. The default value is the root directory if not specified. * `?options` connection specific options. ## Gogs options diff --git a/remote/gogs/gogs.go b/remote/gogs/gogs.go index c420a8e06..d8e338249 100644 --- a/remote/gogs/gogs.go +++ b/remote/gogs/gogs.go @@ -30,7 +30,6 @@ func Load(env envconfig.Env) *Gogs { log.Fatalln("unable to parse remote dsn. %s", err) } params := url_.Query() - url_.Path = "" url_.RawQuery = "" // create the Githbub remote using parameters from