summaryrefslogtreecommitdiff
path: root/Porting/Maintainers.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-13 17:51:20 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-13 17:51:20 +0000
commitfdd40f9619a93646220d5fc6d6fe637d58906adb (patch)
treeeb15cf6a7e4a226defbe1b2a892848127f0fdb75 /Porting/Maintainers.pm
parent550428fe486b18884c31b9382019448ba993d840 (diff)
downloadperl-fdd40f9619a93646220d5fc6d6fe637d58906adb.tar.gz
chomp the output from git ls-files. Display a helpful message nothing is
modified, rather than failing back to the usage message.
Diffstat (limited to 'Porting/Maintainers.pm')
-rw-r--r--Porting/Maintainers.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Porting/Maintainers.pm b/Porting/Maintainers.pm
index 40266f5156..d3d1dbdc8b 100644
--- a/Porting/Maintainers.pm
+++ b/Porting/Maintainers.pm
@@ -108,7 +108,7 @@ sub process_options {
my @Files;
if ($Opened) {
- @Files = `git ls-files -m --full-name`;
+ chomp (@Files = `git ls-files -m --full-name`);
die if $?;
} else {
@Files = @ARGV;
@@ -246,6 +246,9 @@ sub show_results {
}
}
}
+ elsif ($Opened) {
+ print "(No files are modified)\n";
+ }
else {
usage();
}