Skip to content

Commit

Permalink
Merge pull request go-git#3 from QubitProducts/abssubmod
Browse files Browse the repository at this point in the history
submodule: fix clone of absolute URL submodule
  • Loading branch information
alexec committed Apr 12, 2022
2 parents 74e7259 + f2455d6 commit 3f18a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submodule.go
Expand Up @@ -138,7 +138,7 @@ func (s *Submodule) Repository() (*Repository, error) {
return nil, err
}

if !path.IsAbs(moduleURL.Path) {
if !moduleURL.IsAbs() && !path.IsAbs(moduleURL.Path) {
remotes, err := s.w.r.Remotes()
if err != nil {
return nil, err
Expand Down

0 comments on commit 3f18a50

Please sign in to comment.