Skip to content

Commit 18485f5

Browse files
viletyydelvh
andauthored
Update services/repository/files/content.go
add subomodule url is blank condition Co-authored-by: delvh <[email protected]>
1 parent 162a263 commit 18485f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/files/content.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func GetContents(ctx context.Context, repo *repo_model.Repository, treePath, ref
214214
if err != nil {
215215
return nil, err
216216
}
217-
if submodule != nil {
217+
if submodule != nil && submodule.URL != "" {
218218
contentsResponse.SubmoduleGitURL = &submodule.URL
219219
}
220220
}

0 commit comments

Comments
 (0)