Skip to content

Commit

Permalink
fix: revisionRange not resolving to correct diff (#674)
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Kumar <sahil.kumar@tide.co>
  • Loading branch information
xsahil03x committed Mar 22, 2024
1 parent 746573f commit 289a2f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/melos/lib/src/common/git.dart
Expand Up @@ -419,7 +419,9 @@ Future<String> _resolveRevisionRange(
if (revisionRange != null) {
if (revisionRange.isEmpty) {
revisionRange = null;
} else if (!_gitVersionRangeShortHandRegExp.hasMatch(revisionRange)) {
} else if (_gitVersionRangeShortHandRegExp.hasMatch(revisionRange)) {
return revisionRange;
} else {
// If the revision range is not a valid revision range short hand then we
// assume it's a commit or tag and default to the range from that
// commit/tag to HEAD.
Expand Down

0 comments on commit 289a2f7

Please sign in to comment.