File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,6 @@ Future<VersionResult> version({
7777 cache: cache,
7878 );
7979
80- final baseRefForPubspec = baseRef ??
81- (packageName != null
82- ? await GitUtils .getPreviousRefForPackage (gitRoot.path, packageName, tagPrefix: 'v' ) ??
83- (throw Exception ('No previous version found for package $packageName ' ))
84- : await GitUtils .getPreviousRef (gitRoot.path, tagPrefix: tagPrefix));
85-
8680 final pubspecPath =
8781 packageName != null ? join (relative (dartRoot.path, from: gitRoot.path), 'pubspec.yaml' ) : 'pubspec.yaml' ;
8882
@@ -91,7 +85,7 @@ Future<VersionResult> version({
9185 applyMagnitudeOverrides (changes, config);
9286
9387 final basePubSpec = await GitUtils .gitShow (
94- baseRefForPubspec ,
88+ effectiveBaseRef ,
9589 gitRoot.path,
9690 pubspecPath,
9791 );
@@ -145,7 +139,7 @@ Future<VersionResult> version({
145139 }
146140
147141 if (badge) {
148- final badgeContent = await generateVersionBadge (nextVersion);
142+ badgeContent = await generateVersionBadge (nextVersion);
149143 await File (join (dartRoot.path, 'version_badge.svg' )).writeAsString (badgeContent);
150144 logger.info ('Generated version badge for version $nextVersion ' );
151145 }
You can’t perform that action at this time.
0 commit comments