mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 16:31:47 +03:00
8763c41382
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.
13 lines
318 B
Bash
Executable File
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
|