Merge pull request #8188 from dtrodrigues/config-branch

config: include core branch in output
This commit is contained in:
Dustin Rodrigues 2020-08-02 09:42:29 -04:00 committed by GitHub
commit 0369c0ae94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,10 @@ class SystemConfig
CoreTap.instance.git_last_commit || "never"
end
def core_tap_branch
CoreTap.instance.git_branch || "(none)"
end
def core_tap_origin
CoreTap.instance.remote || "(none)"
end
@ -116,6 +120,7 @@ class SystemConfig
f.puts "Core tap ORIGIN: #{core_tap_origin}"
f.puts "Core tap HEAD: #{core_tap_head}"
f.puts "Core tap last commit: #{core_tap_last_commit}"
f.puts "Core tap branch: #{core_tap_branch}"
else
f.puts "Core tap: N/A"
end