Skip to content

Commit 2ef46e6

Browse files
committed
fix agit type
1 parent 33e2104 commit 2ef46e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/serv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func runServ(ctx context.Context, c *cli.Command) error {
212212
if git.DefaultFeatures().SupportProcReceive {
213213
// for AGit Flow
214214
if cmd == "ssh_info" {
215-
fmt.Print(`{"type":"gitea","version":1}`)
215+
fmt.Print(`{"type":"agit","version":1}`)
216216
return nil
217217
}
218218
}

routers/web/misc/misc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func SSHInfo(rw http.ResponseWriter, req *http.Request) {
2020
return
2121
}
2222
rw.Header().Set("content-type", "text/json;charset=UTF-8")
23-
_, err := rw.Write([]byte(`{"type":"gitea","version":1}`))
23+
_, err := rw.Write([]byte(`{"type":"agit","version":1}`))
2424
if err != nil {
2525
log.Error("fail to write result: err: %v", err)
2626
rw.WriteHeader(http.StatusInternalServerError)

0 commit comments

Comments
 (0)