Skip to content
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

MODULES-1596 - Repository repeatedly destroyed/created with force #225

Merged
merged 1 commit into from
Dec 27, 2014

Conversation

underscorgan
Copy link

The retrieve method was calling create and destroy on every run
with force => true. Retrieve should not be making any changes to the
system, so removed that code, and updated working_copy_exists to make
sure that the directory not only contains a .git directory, but also
if source is specified it also matches #{path}/.git/config so that
it will overwrite a git repo with a different source.

Updated tests to not check for the old broken behavior. Added a regression test.

The `retrieve` method was calling `create` and `destroy` on every run
with `force => true`. Retrieve should not be making any changes to the
system, so removed that code, and updated `working_copy_exists` to make
sure that the directory not only contains a `.git` directory, but also
if `source` is specified it also matches `#{path}/.git/config` so that
it will overwrite a git repo with a different source.

Updated tests to not check for the old broken behavior. Added a regression test.
cyberious added a commit that referenced this pull request Dec 27, 2014
MODULES-1596 - Repository repeatedly destroyed/created with force
@cyberious cyberious merged commit ce6b7d3 into puppetlabs:master Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants