Skip to content

Commit 7a454e7

Browse files
authored
Merge pull request #243 from matthewrmshin/fix-bad-switch-warning
fcm switch: fix Perl warning
2 parents 14f4037 + 6712ff4 commit 7a454e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/FCM1/Cm.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,9 @@ sub _cm_get_source {
17941794
return _cm_err(FCM1::Cm::Exception->INVALID_BRANCH, $source_url);
17951795
}
17961796
$source->url_peg(
1797-
$source->branch_url() . '/' . $target->subdir() . '@' . $source->pegrev()
1797+
$source->branch_url()
1798+
. ($target->subdir() ? '/' . $target->subdir() : q{})
1799+
. ('@' . $source->pegrev())
17981800
);
17991801
# Ensure that the source and target URLs are in the same project
18001802
if ($source->project_url() ne $target->project_url()) {

0 commit comments

Comments
 (0)