Skip to content

Commit

Permalink
Do not run git commit if the working directory is clean
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Mar 25, 2013
1 parent c4e48eb commit 05255e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Minilla/Release/Commit.pm
Expand Up @@ -9,6 +9,9 @@ use Minilla::Logger;
sub run {
my ($self, $project, $opts) = @_;

my @modified_files = split /\0/, `git ls-files --deleted --modified -z`;
return if @modified_files == 0;

$project->clear_metadata();
my $ver = $project->metadata->version;

Expand Down

0 comments on commit 05255e6

Please sign in to comment.