This is an automated email from the ASF dual-hosted git repository.
dill0wn pushed a commit to branch dw/8565
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/dw/8565 by this push:
new 30a5b08e7 [#8565] fix a bad usage of update_partial
30a5b08e7 is described below
commit 30a5b08e775ea7329a637cf837dd64ff881d7d6a
Author: Dillon Walls <[email protected]>
AuthorDate: Wed Jul 17 20:57:38 2024 +0000
[#8565] fix a bad usage of update_partial
---
ForgeSVN/forgesvn/model/svn.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index e85624d8a..6d210f128 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -450,8 +450,8 @@ class SVNImplementation(M.RepositoryImplementation):
path = tree_path.strip('/')
RM.LastCommitDoc.m.update_partial(
{'commit_id': commit_id, 'path': path},
- {'commit_id': commit_id, 'path':
- path, 'entries': lcd_entries},
+ {'$set': {'commit_id': commit_id, 'path':
+ path, 'entries': lcd_entries}},
upsert=True)
return tree_id