nixpkgs-update/to-staging.sh
Ryan Mulligan 8763c41382 log timestamps, git merge base, blacklist fricas
We are doing our changes on the git merge base of staging and master so
we can switch between them without annoying any of the nixpkgs
CODEOWNERS.
2018-03-14 10:06:37 -07:00

13 lines
318 B
Bash
Executable File

#! /usr/bin/env bash
set -euxo pipefail
PACKAGE_NAME=$1
BRANCH_NAME="auto-update/$PACKAGE_NAME"
git fetch --multiple upstream origin
git checkout -b "$BRANCH_NAME" "origin/$BRANCH_NAME"
git reset --hard refs/remotes/upstream/staging
git cherry-pick "refs/remotes/origin/$BRANCH_NAME"
git push -f
git checkout master