diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-20 12:33:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-20 12:33:21 +0800 |
commit | 3423f1ef3633257236d01577c9c2ee5f485c8cb7 (patch) | |
tree | a7c0be233f3ff3ab4020e09bd870b7879a09c75b | |
parent | ssh/recv: Check hooksPath before receiving packs (diff) | |
download | forge-3423f1ef3633257236d01577c9c2ee5f485c8cb7.tar.gz forge-3423f1ef3633257236d01577c9c2ee5f485c8cb7.tar.zst forge-3423f1ef3633257236d01577c9c2ee5f485c8cb7.zip |
all: Reformat
-rw-r--r-- | ssh_server.go | 2 | ||||
-rw-r--r-- | ssh_utils.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ssh_server.go b/ssh_server.go index c1eac47..f6cb542 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -42,7 +42,7 @@ func serve_ssh(listener net.Listener) error { } clog.Info("Incoming SSH: " + session.RemoteAddr().String() + " " + client_public_key_string + " " + session.RawCommand()) - fmt.Fprintln(session.Stderr(), ansiec.Blue + "Lindenii Forge "+VERSION+", source at "+strings.TrimSuffix(config.HTTP.Root, "/")+"/:/source/" + ansiec.Reset + "\r") + fmt.Fprintln(session.Stderr(), ansiec.Blue+"Lindenii Forge "+VERSION+", source at "+strings.TrimSuffix(config.HTTP.Root, "/")+"/:/source/"+ansiec.Reset+"\r") cmd := session.Command() diff --git a/ssh_utils.go b/ssh_utils.go index 48b25b9..6074dff 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -60,5 +60,5 @@ func get_repo_path_perms_from_ssh_path_pubkey(ctx context.Context, ssh_path stri } func wf_error(w io.Writer, format string, args ...any) { - fmt.Fprintln(w, ansiec.Red + fmt.Sprintf(format, args...) + ansiec.Reset) + fmt.Fprintln(w, ansiec.Red+fmt.Sprintf(format, args...)+ansiec.Reset) } |