Skip to content

Commit

Permalink
Merge pull request #193 from nebula-plugins/avoid-git-status
Browse files Browse the repository at this point in the history
Avoid git status call for strategy selection unless required
  • Loading branch information
DanielThomas authored Jun 24, 2020
2 parents 9f49d28 + 7f8e88d commit 1b4976e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ final class SemVerStrategy implements DefaultVersionStrategy {
logger.info('Skipping {} strategy because repo is dirty.', name)
return false
} else {
String status = grgit.status().clean ? 'clean' : 'dirty'
logger.info('Using {} strategy because repo is {} and stage ({}) is one of: {}', name, status, stage, stages)
logger.info('Using {} strategy because repo is not dirty (or allowed to be dirty) and stage ({}) is one of: {}', name, stage, stages)
return true
}
}
Expand Down

0 comments on commit 1b4976e

Please sign in to comment.