dashboard / pico / chore: rsync test #47 rss

open · opened on 2025-02-21T21:07:49Z by erock
Help
# add changes to patch request
git format-patch main --stdout | ssh pr.pico.sh pr add 47
# add review to patch request
git format-patch main --stdout | ssh pr.pico.sh pr add --review 47
# remove patchset
ssh pr.pico.sh ps rm ps-x
# checkout all patches
ssh pr.pico.sh pr print 47 | git am -3
# print a diff between the last two patches in a patch request
ssh pr.pico.sh pr diff 47
# accept PR
ssh pr.pico.sh pr accept 47
# close PR
ssh pr.pico.sh pr close 47

Logs

erock created pr with ps-100 on 2025-02-21T21:07:49Z
erock added ps-101 on 2025-02-21T21:21:15Z
erock added ps-102 on 2025-02-21T21:21:56Z
erock added ps-103 on 2025-02-21T21:22:20Z
erock added ps-104 on 2025-02-22T02:12:03Z

Patchsets

ps-100 by erock on 2025-02-21T21:07:49Z
Range Diff ↕ rd-101
1: 0306c3f < -: ------- chore: rsync test
2: 971b354 ! 1: 745b513 chore: add `rsync --delete` test
ps-101 by erock on 2025-02-21T21:21:15Z
Range Diff ↕ rd-102
1: 745b513 ! 1: 76a6734 chore: add `rsync --delete` test
ps-102 by erock on 2025-02-21T21:21:56Z
Range Diff ↕ rd-103
1: 76a6734 ! 1: 57bb60c chore: add `rsync --delete` test
ps-103 by erock on 2025-02-21T21:22:20Z
Range Diff ↕ rd-104
1: 57bb60c = 1: 57bb60c chore: add `rsync --delete` test
-: ------- > 2: 5c8d929 chore: test is failing on `--delete`
ps-104 by erock on 2025-02-22T02:12:03Z

Range-diff rd-102

title
chore: add `rsync --delete` test
description
Patch changed
old #1
745b513
new #1
76a6734
Back to top
1: 745b513 ! 1: 76a6734 chore: add `rsync --delete` test
shared/ssh.go shared/ssh.go
 package shared
 
 import (
+	"fmt"
 	"log/slog"
 
 	"github.com/charmbracelet/ssh"
 
 func (r *SshAuthHandler) PubkeyAuthHandler(ctx ssh.Context, key ssh.PublicKey) bool {
 	pubkey := utils.KeyForKeyText(key)
+	fmt.Println("ACTUAL", pubkey)
 	user, err := r.DB.FindUserByPubkey(pubkey)
 	if err != nil {
 		r.Logger.Error(