Skip to content

Commit 4806b04

Browse files
authored
Merge pull request #11 from jarpsimoes/feature/fix-target-root
FIX: Issues related with the rootpath
2 parents 3d4b240 + 2507b8d commit 4806b04

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/utils/environment_config.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"github.com/go-git/go-git/v5/plumbing/transport/http"
77
"log"
88
"os"
9-
"path/filepath"
10-
"runtime"
119
"sync"
1210
"time"
1311
)
@@ -54,10 +52,7 @@ var baseRepositoryConfigInstance *BaseRepositoryConfig
5452
var basicAuthenticationMethod *BasicAuthenticationMethod
5553
var healthCheckControl *HealthCheckControl
5654
var pathSecurityCheck *PathSecurityCheck
57-
var (
58-
_, b, _, _ = runtime.Caller(0)
59-
basePath = filepath.Dir(b)
60-
)
55+
var basePath, _ = os.Getwd()
6156

6257
// UpdateState [HealthCheckControl] it's a function to update Status
6358
func (hcc *HealthCheckControl) UpdateState(status bool) {

0 commit comments

Comments
 (0)