Skip to content

Commit 17c1e5c

Browse files
committed
release.pl: fetch the release branch
Fetch the release branch, as it is not available locally when running on CI.
1 parent 952e9ab commit 17c1e5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

release.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
my $DRY_RUN;
1313
my $SKIP_TESTS;
14+
my $REPOSITORY = 'origin';
1415

1516
GetOptions(
1617
'n|dry-run|just-print' => \$DRY_RUN,
1718
'T|skip-tests' => \$SKIP_TESTS,
19+
'repository' => \$REPOSITORY,
1820
)
1921
or die "usage: $0 [-n]\n";
2022

@@ -182,7 +184,9 @@ ($;@)
182184
}
183185
}
184186

185-
187+
# Fetch the release branch. This is needed on CI
188+
# where only the current branch is available.
189+
git fetch => $REPOSITORY, 'release';
186190

187191
my @new_files = (
188192
'github-keygen',

0 commit comments

Comments
 (0)