Allow registration of files with svn when parents directory is not yet registered.

This commit is contained in:
Richard Kimberly Heck 2020-12-18 16:01:43 -05:00
parent 750af39139
commit 77cdef1fe0
2 changed files with 1 additions and 3 deletions

View File

@ -198,8 +198,6 @@ bool LyXVC::registrer()
}
if (response.empty())
response = _("(no initial description)");
// FIXME This will fail with svn if the current directory has not
// itself been added.
vcs_->registrer(to_utf8(response));
return true;
}

View File

@ -1251,7 +1251,7 @@ bool SVN::retrieve(FileName const & file)
void SVN::registrer(string const & /*msg*/)
{
doVCCommand("svn add -q " + quoteName(onlyFileName(owner_->absFileName())),
doVCCommand("svn add -q --parents " + quoteName(onlyFileName(owner_->absFileName())),
FileName(owner_->filePath()));
}