Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 2024-06-05 00:31:22 +00:00
parent 70d2872ff2
commit a5b38fc7a9
No known key found for this signature in database
GPG Key ID: E5FB19032C2C2A64
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ func runServ(c *cli.Context) error {
if git.DefaultFeatures().SupportProcReceive {
// for AGit Flow
if cmd == "ssh_info" {
data := private.GetSshInfo(ctx)
data := private.GetSSHInfo(ctx)
fmt.Print(data)
return nil
}

View File

@ -37,7 +37,7 @@ func ReloadTemplates(ctx context.Context) ResponseExtra {
}
// Shutdown calls the internal shutdown function
func GetSshInfo(ctx context.Context) string {
func GetSSHInfo(ctx context.Context) string {
reqURL := setting.LocalURL + "ssh_info"
req := newInternalRequest(ctx, reqURL, "GET")