Skip to content

FIX: git reset before checking out on new container#20

Open
Alteras1 wants to merge 1 commit into
mainfrom
fix/clean-discourse
Open

FIX: git reset before checking out on new container#20
Alteras1 wants to merge 1 commit into
mainfrom
fix/clean-discourse

Conversation

@Alteras1

@Alteras1 Alteras1 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

During provisioning, dv starts from the built image and performs a git checkout, fetching the latest code. However, the built image could have uncommitted changes (i.e. updates Gemfile.lock from bundle install). This may conflict with the checkout process, resulting in the provisioning failing. This commit adds a git reset --hard to ensure its subsequent checkouts and pulls are clean.

During provisioning, dv starts from the built image and performs a `git
checkout`, fetching the latest code. However, the built image could have
uncommitted changes (i.e. updates Gemfile.lock from bundle install).
This may conflict with the checkout process, resulting in the
provisioning failing. This commit adds a `git reset --hard` to ensure it
subsequent checkouts and pulls are clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant