changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/git-vendor-pull.sh

changeset 15: 17a70918610c
parent: b1363d688ae1
child: 3491c1d1815d
author: ellis <ellis@rwest.io>
date: Mon, 27 Nov 2023 22:33:13 -0500
permissions: -rwxr-xr-x
description: scripts
1 #!/usr/bin/bash
2 # scripts/git-vendor-pull.sh git.savannah.gnu.org/git emacs master
3 NAME="${1}"
4 DOMAIN="${2}"
5 REMOTE="https://$DOMAIN/$NAME"
6 BRANCH="${2:-master}"
7 REPO="ssh://git@vc.compiler.company/packy/shed/vendor/${1}"
8 OUT="${3:-build/src/${1}}"
9 mkdir -pv build/src
10 git clone $REPO $OUT
11 pushd $OUT
12 git pull $REMOTE $BRANCH
13 git push $REPO
14 popd