summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-07 08:25:52 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-07 08:26:28 (GMT)
commit5511213487f9e6c6bd23a227ee64f9c541680f02 (patch)
tree9f3cd5f4edd12f344cbaf63ab98ba0dad9037485
parent5b5c9b61015434a253bf1eee65c7f05dc870b105 (diff)
Exit gently if no VCS found but --suppress_not_found is given
-rwxr-xr-xtool/file2lastrev.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index a317e37..3d8c693 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -66,6 +66,7 @@ OptionParser.new {|opts|
new_vcs["."]
end
}
+exit unless vcs
@output =
case @output