Revert renaming of tap_git_head

This commit is contained in:
Nanda H Krishna 2021-05-31 20:36:36 +05:30
parent 0735eba995
commit e6dd13d04e
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA
2 changed files with 11 additions and 11 deletions

View File

@ -1163,7 +1163,7 @@ class FormulaInstaller
tab.source["versions"]["stable"] = formula.stable.version.to_s
tab.source["versions"]["version_scheme"] = formula.version_scheme
tab.source["path"] = formula.specified_path.to_s
tab.source["tap_git_revision"] = formula.tap&.installed? ? formula.tap&.git_head : nil
tab.source["tap_git_head"] = formula.tap&.installed? ? formula.tap&.git_head : nil
tab.tap = formula.tap
tab.write

View File

@ -39,11 +39,11 @@ class Tab < OpenStruct
"runtime_dependencies" => Tab.runtime_deps_hash(formula, runtime_deps),
"arch" => Hardware::CPU.arch,
"source" => {
"path" => formula.specified_path.to_s,
"tap" => formula.tap&.name,
"tap_git_revision" => formula.tap&.git_head,
"spec" => formula.active_spec_sym.to_s,
"versions" => {
"path" => formula.specified_path.to_s,
"tap" => formula.tap&.name,
"tap_git_head" => formula.tap&.git_head,
"spec" => formula.active_spec_sym.to_s,
"versions" => {
"stable" => formula.stable&.version.to_s,
"head" => formula.head&.version.to_s,
"version_scheme" => formula.version_scheme,
@ -194,11 +194,11 @@ class Tab < OpenStruct
"runtime_dependencies" => nil,
"arch" => nil,
"source" => {
"path" => nil,
"tap" => nil,
"tap_git_revision" => nil,
"spec" => "stable",
"versions" => {
"path" => nil,
"tap" => nil,
"tap_git_head" => nil,
"spec" => "stable",
"versions" => {
"stable" => nil,
"head" => nil,
"version_scheme" => 0,