mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
maintainer/scripts/check-cherry-picks: fix calling from outside nixpkgs
The CI job calls this as trusted/maintainers/..., i.e. with a working directory outside the checkout. The git commands inside the script assume to be inside the checkout, though, so let's force that.
This commit is contained in:
@@ -8,6 +8,9 @@ if [ $# != "2" ] ; then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Make sure we are inside the nixpkgs repo, even when called from outside
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
PICKABLE_BRANCHES=${PICKABLE_BRANCHES:-master staging release-??.?? staging-??.??}
|
||||
problem=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user