Ignore broken git work directory at creating revision.h [ci skip]
This commit is contained in:
parent
de490a132c
commit
64eba7a01a
@ -98,6 +98,7 @@ ok = true
|
||||
data.sub!(/(?<!\A|\n)\z/, "\n")
|
||||
@output.write(data, overwrite: true, create_only: create_only)
|
||||
rescue => e
|
||||
next if @suppress_not_found and VCS::NotFoundError === e
|
||||
warn "#{File.basename(Program)}: #{e.message}"
|
||||
ok = false
|
||||
end
|
||||
|
@ -479,7 +479,7 @@ class VCS
|
||||
last = cmd_read_at(srcdir, [[*gitcmd, 'rev-parse', ref, err: w]]).rstrip
|
||||
w.close
|
||||
unless r.eof?
|
||||
raise "#{COMMAND} rev-parse failed\n#{r.read.gsub(/^(?=\s*\S)/, ' ')}"
|
||||
raise VCS::NotFoundError, "#{COMMAND} rev-parse failed\n#{r.read.gsub(/^(?=\s*\S)/, ' ')}"
|
||||
end
|
||||
end
|
||||
log = cmd_read_at(srcdir, [[*gitcmd, 'log', '-n1', '--date=iso', '--pretty=fuller', *path]])
|
||||
|
Loading…
x
Reference in New Issue
Block a user