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
Labels
I have a task that does the following:
subversion: repo=https://repo/path/to/templates
dest=/opt/templates
export=True
username=user
password=pass
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()
callssvn info
which will fail ifexport=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.The text was updated successfully, but these errors were encountered: