Skip to content

Commit 3f18a50

Browse files
authored
Merge pull request go-git#3 from QubitProducts/abssubmod
submodule: fix clone of absolute URL submodule
2 parents 74e7259 + f2455d6 commit 3f18a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *Submodule) Repository() (*Repository, error) {
138138
return nil, err
139139
}
140140

141-
if !path.IsAbs(moduleURL.Path) {
141+
if !moduleURL.IsAbs() && !path.IsAbs(moduleURL.Path) {
142142
remotes, err := s.w.r.Remotes()
143143
if err != nil {
144144
return nil, err

0 commit comments

Comments
 (0)