Merge pull request #798 from basecamp/git-clone

Build from within a git clone by default
This commit is contained in:
Donal McBreen
2024-05-20 12:18:07 +01:00
committed by GitHub
15 changed files with 253 additions and 76 deletions

View File

@@ -340,7 +340,7 @@ class Kamal::Configuration
def git_version
@git_version ||=
if Kamal::Git.used?
if Kamal::Git.uncommitted_changes.present? && !builder.git_archive?
if Kamal::Git.uncommitted_changes.present? && !builder.git_clone?
uncommitted_suffix = "_uncommitted_#{SecureRandom.hex(8)}"
end
[ Kamal::Git.revision, uncommitted_suffix ].compact.join