mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-19 18:26:33 +00:00
Handle submodules without a .gitmodules entry - fix #1023
This commit is contained in:
1 parent
5e763baa12
commit
5d5d774e03
4 files changed
+15
-3
No files matched your search
@@ -31,6 +31,10 @@ func NewSubModuleFile(c *Commit, refUrl, refId string) *SubModuleFile {
|
||||
|
||||
// RefUrl guesses and returns reference URL.
|
||||
func (sf *SubModuleFile) RefUrl() string {
|
||||
if sf.refUrl == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
url := strings.TrimSuffix(sf.refUrl, ".git")
|
||||
|
||||
// git://xxx/user/repo
|
||||
|
||||
Reference in new issue
Block a user