File: day_452__GIT_SSH.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (17 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Found a bug in git-annex-shell where verbose messages would sometimes make
it output things git-annex didn't expect.

While fixing that, I wanted to add a test case, but the test suite actually
does not test git-annex-shell at all. It would need to ssh, which test
suites should not do. So, I took a detour..

Support for `GIT_SSH` and `GIT_SSH_COMMAND` has been requested before for
various reasons. So I implemented that, which took 4 hours. (With one
little possible compatibility caveat, since git-annex needs to pass the -n
parameter to ssh sometimes, and git's interface doesn't allow for such a
parameter.)

Now the test suite can use those environment variables to make mock ssh
remotes be accessed using local `sh` instead of `ssh`.

Today's work was sponsored by Trenton Cronholm on Patreon.