mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03: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:
parent
d283c3b36f
commit
642de212a6
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue