mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-10 10:12:19 -06:00
chore: Append .git to clone url for facilitate cloudflare rule config
This commit is contained in:
parent
b6970fb247
commit
1875200269
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "server-ee"]
|
||||
path = server-ee
|
||||
url = https://code.onedev.io/onedev/server-ee
|
||||
url = https://code.onedev.io/onedev/server-ee.git
|
||||
|
||||
@ -53,9 +53,9 @@ public class DefaultUrlService implements UrlService {
|
||||
@Override
|
||||
public String cloneUrlFor(Project project, boolean ssh) {
|
||||
if (ssh)
|
||||
return settingService.getSystemSetting().getEffectiveSshRootUrl() + "/" + project.getPath();
|
||||
return settingService.getSystemSetting().getEffectiveSshRootUrl() + "/" + project.getPath() + ".git";
|
||||
else
|
||||
return settingService.getSystemSetting().getServerUrl() + "/" + project.getPath();
|
||||
return settingService.getSystemSetting().getServerUrl() + "/" + project.getPath() + ".git";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user