mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-18 00:41:49 +03:00
13 lines
451 B
Bash
Executable File
13 lines
451 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
git fetch --prune origin
|
|
git fetch --prune upstream
|
|
|
|
git checkout master
|
|
git reset --hard upstream/master
|
|
|
|
git branch -ra --merged | grep "origin/auto-update/" | sed -e 's|^ remotes/origin/\(.*\)|git push origin :\1|' | while IFS= read -r line; do eval "$line"; done || true
|
|
|
|
git branch -a --merged | grep "auto-update/" | sed -e 's|^\(.*\)|git branch -d \1|' | while IFS= read -r line; do eval "$line"; done
|