bin/homedir-push

Wed, 03 Apr 2019 03:11:25 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 03 Apr 2019 03:11:25 -0400
changeset 752
bdbfa576e84f
parent 261
6254589972e6
permissions
-rwxr-xr-x

git likes to wait on hooks if you keep STD* open

#!/bin/sh
set -eu

TARGET=$1

hg archive -t tgz -p . - | ssh $TARGET tar xz --keep-newer-files

mercurial