Skip to content

Commit e5b813a

Browse files
committed
Accept "/" and "-" in branch names specified in REPO.
1 parent a4fd201 commit e5b813a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
* Ignore errors when deleting temporary files.
1212
* Use the `--pull` option to always use the latest image.
13+
* Accept "/" and "-" in branch names specified in `REPO`.
1314

1415
## [2.1.1] - 2022-06-20
1516

bin/setup-environment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ for my $r ( split /\s+/, $repos ) {
223223
# get repo
224224
if ( !-d $directory ) {
225225
my $branch = '';
226-
$branch = $1 if $r =~ s/(?:#(\w+))\z//;
226+
$branch = $1 if $r =~ s{(?:#([\w/-]+))\z}{};
227227

228228
my $k = basename($r);
229229
$directory = catfile( $repo_base_dir, $k );

0 commit comments

Comments
 (0)