Skip to content

fix: don't try to delete .git if it's not present #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

jlsalmon
Copy link
Contributor

When using --opt source_mode=copy with a custom .dockerignore that excludes the .git directory from the docker build context, the rmdir .git command fails with The system cannot find the file specified. since docker does not have that directory in context. This patch avoids this scenario with a simple existence check.

When using `--opt source_mode=copy` with a custom `.dockerignore` that excludes the `.git` directory from the docker build context, the `rmdir .git` command fails with `The system cannot find the file specified.` since docker does not have that directory in context. This patch avoids this scenario with a simple existence check.
@TBBle
Copy link
Collaborator

TBBle commented Apr 18, 2022

LGTM.

@TBBle TBBle merged commit d8cf1a2 into adamrehn:master Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants