We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path
1 parent ca03c07 commit 8d1c961Copy full SHA for 8d1c961
1 file changed
sizes/git.go
@@ -9,6 +9,7 @@ import (
9
"io"
10
"os"
11
"os/exec"
12
+ "path/filepath"
13
"strconv"
14
"strings"
15
)
@@ -82,8 +83,9 @@ func NewRepository(path string) (*Repository, error) {
82
83
return nil, err
84
}
85
86
+ gitDir := filepath.Join(path, string(bytes.TrimSpace(out)))
87
repo := &Repository{
- path: string(bytes.TrimSpace(out)),
88
+ path: gitDir,
89
90
return repo, nil
91
0 commit comments