Skip to content

Commit f2455d6

Browse files
committed
submodule: fix clone of absolute URL submodule
1 parent 74e7259 commit f2455d6

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)