]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Another tweak for a change in git status.
authorWayne Davison <wayned@samba.org>
Mon, 6 Apr 2020 00:12:29 +0000 (17:12 -0700)
committerWayne Davison <wayned@samba.org>
Mon, 6 Apr 2020 00:12:29 +0000 (17:12 -0700)
packaging/git-status.pl

index 9d322e6550167d0cf24a29c5a5bfb303e6a11131..f68023acb75352a8b0063002b713d94276451d18 100644 (file)
@@ -35,7 +35,8 @@ sub check_git_status
     my($fatal_unless_clean, $subdir) = @_;
     $subdir = '.' unless defined $subdir;
     my $status = `cd '$subdir' && git status`;
-    my $is_clean = $status =~ /\nnothing to commit.+working directory clean/;
+    my $is_clean = $status =~ /\nnothing to commit.+working (directory|tree) clean/;
+
     my($cur_branch) = $status =~ /^(?:# )?On branch (.+)\n/;
     if ($fatal_unless_clean && !$is_clean) {
        if ($subdir eq '.') {