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:
authorMikhail Mazurskiy <mmazurskiy@gitlab.com>2020-09-13 11:14:04 +0300
committerMikhail Mazurskiy <mmazurskiy@gitlab.com>2020-09-13 11:14:04 +0300
commitcc4aedb869cad2ca0493ac0048d4dab16f140de0 (patch)
treeb6fa7bfe5503485efa9e6d8ec35b26af97a9beba /cmd/gitaly-wrapper
parente5dd5dfe799e1bf7dd0da9f6d314b880122fd8fa (diff)
Use filepath package to manipulate file paths
Package path should be used to manipulate abstract slash-delimited paths only, not real file paths.
Diffstat (limited to 'cmd/gitaly-wrapper')
-rw-r--r--cmd/gitaly-wrapper/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gitaly-wrapper/main.go b/cmd/gitaly-wrapper/main.go
index 20d491058..e31c9e2e0 100644
--- a/cmd/gitaly-wrapper/main.go
+++ b/cmd/gitaly-wrapper/main.go
@@ -6,7 +6,7 @@ import (
"os"
"os/exec"
"os/signal"
- "path"
+ "path/filepath"
"strconv"
"syscall"
"time"
@@ -152,7 +152,7 @@ func isGitaly(p *os.Process, gitalyBin string) bool {
return false
}
- if path.Base(command) == path.Base(gitalyBin) {
+ if filepath.Base(command) == filepath.Base(gitalyBin) {
return true
}