#!/bin/sh # SPDX-FileCopyrightText: Stone Tickle # SPDX-License-Identifier: GPL-3.0-only set -eux if [ ! -d ~/.ssh ]; then exit 0 fi cat >> ~/.ssh/config <> branches_to_push.txt fi done git remote add github git@github.com:muon-build/muon.git # We don't want to use --mirror here because that implies --prune which will # remove any branches that might have been created on the gh repo only. # shellcheck disable=SC2046 # Intended splitting of branches git push --force --tags github $(cat branches_to_push.txt)