diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-02-17 18:25:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-02-17 18:25:07 +0900 |
commit | 64eba7a01a7741774e10cab153196149c2bff00f (patch) | |
tree | f2f450234cff06fb3a3b40aab6e015f77e23b426 /tool/lib/vcs.rb | |
parent | de490a132c358c184939a7e733106ae9b4446787 (diff) |
Ignore broken git work directory at creating revision.h [ci skip]
Diffstat (limited to 'tool/lib/vcs.rb')
-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 3894f9c8e8..51cdb0fdc3 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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]]) |