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;;
|
*) true;;
|
||||||
esac || error_exit "Package on blacklist."
|
esac || error_exit "Package on blacklist."
|
||||||
|
|
||||||
|
git fetch --prune --multiple upstream origin
|
||||||
|
|
||||||
if git branch --remote | grep "origin/auto-update/${PACKAGE_NAME}"
|
if git branch --remote | grep "origin/auto-update/${PACKAGE_NAME}"
|
||||||
then
|
then
|
||||||
error_exit "Update branch already on origin."
|
error_exit "Update branch already on origin."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git fetch --prune --multiple upstream origin
|
|
||||||
|
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git checkout master
|
git checkout master
|
||||||
git reset --hard upstream/master
|
git reset --hard upstream/master
|
||||||
|
Loading…
Reference in New Issue
Block a user