diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-01-13 17:51:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-01-13 17:51:20 +0000 |
commit | fdd40f9619a93646220d5fc6d6fe637d58906adb (patch) | |
tree | eb15cf6a7e4a226defbe1b2a892848127f0fdb75 /Porting/Maintainers.pm | |
parent | 550428fe486b18884c31b9382019448ba993d840 (diff) | |
download | perl-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.pm | 5 |
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(); } |