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