Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Subversion: Export fails because svn info is called after export #388

Closed
dailyherold opened this issue Nov 25, 2014 · 1 comment
Closed

Comments

@dailyherold
Copy link

I have a task that does the following:

If the destination folder does not exist then the task fails as I get the following msg:
svn: '/opt/templates' is not a working copy
Looking at the failed command output by Ansible I see:
"cmd": "/usr/bin/svn --non-interactive --trust-server-cert --no-auth-cache --username user --password ******** info /opt/templates"
Confirming in the source code I find on line 225 that get_revision() will be run no matter if export is true or false. get_revision() calls svn info which will fail if export=True since there is no .svn file.

Note: The repo path is in fact exported on the remote machine despite this message. So the export action itself works, it is just the call to get_revision() that fails.

Any further attempts to run fail as well, and I get the same ERROR: /opt/templates folder already exists, but its not a subversion repository. as the existing issue #370.

@abadger
Copy link
Contributor

abadger commented Jan 29, 2015

I just merged #506 which should fix this issue as well. Please open a new bug if the problem still occurs with the new version of the module.

@abadger abadger closed this as completed Jan 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants