]> arthur.barton.de Git - bup.git/commit
ssh: simplify the code
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 13 Jan 2020 19:53:26 +0000 (20:53 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Apr 2020 20:52:02 +0000 (15:52 -0500)
commit6a097ab641b0a7584a15982e48b34e0882db4cb2
treeca8c4f4fa71beadd8cedcce022368fc0a1c374b1
parentc9227455fdbd6605c04075aa2ae0faad9aacbc62
ssh: simplify the code

There's no point in shipping PATH to the remote server, since
it will be different there. We can also simplify the loopback
check, and we don't really need to munge the PATH there either
if we just use path.exe() in place of a plain 'bup' for it.

While at it, also fix the formatting instruction for the ints
to %d, instead of %s.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/ssh.py