Skip to content

Commit

Permalink
Merge pull request #243 from matthewrmshin/fix-bad-switch-warning
Browse files Browse the repository at this point in the history
fcm switch: fix Perl warning
  • Loading branch information
scwhitehouse authored Feb 22, 2017
2 parents 14f4037 + 6712ff4 commit 7a454e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/FCM1/Cm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,9 @@ sub _cm_get_source {
return _cm_err(FCM1::Cm::Exception->INVALID_BRANCH, $source_url);
}
$source->url_peg(
$source->branch_url() . '/' . $target->subdir() . '@' . $source->pegrev()
$source->branch_url()
. ($target->subdir() ? '/' . $target->subdir() : q{})
. ('@' . $source->pegrev())
);
# Ensure that the source and target URLs are in the same project
if ($source->project_url() ne $target->project_url()) {
Expand Down

0 comments on commit 7a454e7

Please sign in to comment.