summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2014-07-31 14:43:32 -0700
committerWayne Davison <wayned@samba.org>2014-07-31 14:47:09 -0700
commit6fe798392bdbdeb34d01b15de7f0123df3bbe850 (patch)
treec5e240b4efca0b4b81c10c6a50f6c1eb9b5f1625
parent6ceb9ea0120d6350d0a5396ffd9c7b93c8589fec (diff)
downloadrsync-6fe798392bdbdeb34d01b15de7f0123df3bbe850.tar.gz
rsync-6fe798392bdbdeb34d01b15de7f0123df3bbe850.tar.bz2
rsync-6fe798392bdbdeb34d01b15de7f0123df3bbe850.zip
Match latest git's repo status messages.
-rw-r--r--packaging/git-status.pl4
-rwxr-xr-xpackaging/nightly-rsync2
2 files changed, 3 insertions, 3 deletions
diff --git a/packaging/git-status.pl b/packaging/git-status.pl
index 32cd437d..9d322e65 100644
--- a/packaging/git-status.pl
+++ b/packaging/git-status.pl
@@ -35,8 +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($cur_branch) = $status =~ /^# On branch (.+)\n/;
+ my $is_clean = $status =~ /\nnothing to commit.+working directory clean/;
+ my($cur_branch) = $status =~ /^(?:# )?On branch (.+)\n/;
if ($fatal_unless_clean && !$is_clean) {
if ($subdir eq '.') {
$subdir = '';
diff --git a/packaging/nightly-rsync b/packaging/nightly-rsync
index 3aaabcb2..c33a7da9 100755
--- a/packaging/nightly-rsync
+++ b/packaging/nightly-rsync
@@ -39,7 +39,7 @@ if ($make_tar) {
open(IN, '-|', 'git status') or die $!;
my $status = join('', <IN>);
close IN;
- die "The checkout is not clean:\n", $status unless $status =~ /\nnothing to commit \(working directory clean\)/;
+ die "The checkout is not clean:\n", $status unless $status =~ /\nnothing to commit.+working directory clean/;
die "The checkout is not on the master branch.\n" unless $status =~ /^# On branch master\n/;
system "make $gen_target" and die "make $gen_target failed!\n";