You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cryptpad/tools/pull-cryptpad-upstream.sh

12 lines
296 B
Bash

#!/bin/sh
REPO="https://github.com/xwiki-labs/cryptpad.git"
PREFIX=cryptpad
REF="${1}"
if [ -z "${REF}" ]; then
printf "usage: $0 <ref>\n" 1>&2
printf "ref: main, tag, branch or commit hash\n" 1>&2
exit 1
fi
cd $(dirname $0)/..
exec git subtree pull -P "${PREFIX}" "${REPO}" "${REF}"