mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
move pruning to the correct spot
This commit is contained in:
parent
af13129cdd
commit
4e6525addd
4
up.sh
4
up.sh
@ -64,13 +64,13 @@ case "$PACKAGE_NAME" in
|
||||
*) true;;
|
||||
esac || error_exit "Package on blacklist."
|
||||
|
||||
git fetch --prune --multiple upstream origin
|
||||
|
||||
if git branch --remote | grep "origin/auto-update/${PACKAGE_NAME}"
|
||||
then
|
||||
error_exit "Update branch already on origin."
|
||||
fi
|
||||
|
||||
git fetch --prune --multiple upstream origin
|
||||
|
||||
git reset --hard
|
||||
git checkout master
|
||||
git reset --hard upstream/master
|
||||
|
Loading…
Reference in New Issue
Block a user