We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce515c9 commit 1f0cca9Copy full SHA for 1f0cca9
1 file changed
git/git.go
@@ -3,7 +3,7 @@ package git
3
import (
4
"context"
5
"fmt"
6
- "path/filepath"
+ "strings"
7
8
"github.com/go-git/go-git/v5"
9
"github.com/go-git/go-git/v5/plumbing"
@@ -26,7 +26,7 @@ func (b Branch) ReferenceName() plumbing.ReferenceName {
26
}
27
28
func (b Branch) Sub(s string) Branch {
29
- return Branch(filepath.Join(string(b), s))
+ return Branch(strings.Join([]string{string(b), s}, "/"))
30
31
32
type CommitHash string
@@ -50,7 +50,7 @@ func (a Address) Sub(s string) Address {
50
51
52
func (a Address) Join(s ns.NS) Address {
53
- return Address{Repo: a.Repo, Branch: a.Branch.Sub(s.Path())}
+ return Address{Repo: a.Repo, Branch: a.Branch.Sub(s.GitPath())}
54
55
56
func (a Address) String() string {
0 commit comments