"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Lorenz (xha)" <me@xha.li>
Subject:
using tog(1) as an alternative to gotwebd(8) (anonymous access)
To:
gameoftrees@openbsd.org
Date:
Wed, 4 Oct 2023 13:02:24 +0200

Download raw body.

Thread
hi gameoftrees@,

i've been trying to get more away from web browsers and since i really
like the interface of tog i am curious if i could allow anonymous tog
access via ssh using a shell script like this:

```
#!/bin/sh
repository='$1'

echo "to view the tree of a commit, press T"
echo "see got(1) for a full manual page"
read

cd '$repository'

tog
```

i obviously would need to ensure that the variable $1 doesn't contain
something like "..". i would probably do a switch case to make sure that
only repos i want can actually be viewed.

i couldn't find anything on the mailling lists that anyone has ever
tried this. since tog only allows read-only access, this would be fine,
right?

- lorenz