diff options
-rw-r--r-- | tool/lib/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 370530d53f..1868553e74 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -605,7 +605,7 @@ class VCS end rev unless rev.empty? end - unless /./.match(from) or /./.match(from = branch_beginning(url)) + unless (from && /./.match(from)) or ((from = branch_beginning(url)) && /./.match(from)) warn "no starting commit found", uplevel: 1 from = nil end |