Merge branch 'main' into extract-env-writer

* main:
  Inline util method only used in one place
This commit is contained in:
dhh
2023-09-16 11:12:08 -07:00
2 changed files with 8 additions and 13 deletions

View File

@@ -79,18 +79,6 @@ module Kamal::Utils
.gsub(DOLLAR_SIGN_WITHOUT_SHELL_EXPANSION_REGEX, '\$')
end
# Abbreviate a git revhash for concise display
def abbreviate_version(version)
if version
# Don't abbreviate <sha>_uncommitted_<etc>
if version.include?("_")
version
else
version[0...7]
end
end
end
def uncommitted_changes
`git status --porcelain`.strip
end