Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-08-09 13:24:13 +0300
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-08-15 20:26:23 +0300
commit3b726bf66de6b3acf89505465e2c98ce44b77d75 (patch)
tree3c72380dc7d28bd4654822987d4c25eeebe73d63 /internal/config
parent368539ced6034abac608fae39b68c368ea50c05a (diff)
RepositoryService::FetchRemote
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 58af344f9..450062c83 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -5,6 +5,7 @@ import (
"io"
"os"
"os/exec"
+ "path"
log "github.com/Sirupsen/logrus"
@@ -167,3 +168,12 @@ func StoragePath(storageName string) (string, bool) {
}
return "", false
}
+
+// GitlabShellPath returns the full path to `gitlab-shell` including basename.
+// The second boolean return value indicates if it's found
+func GitlabShellPath() (string, bool) {
+ if len(Config.GitlabShell.Dir) == 0 {
+ return "", false
+ }
+ return path.Join(Config.GitlabShell.Dir, "gitlab-shell"), true
+}