Skip to content

Commit

Permalink
Must reset the push docstring before regenerating it
Browse files Browse the repository at this point in the history
Otherwise the builddoc decorator will amend the existing pre-generated
docstring, effectively duplicating it.
  • Loading branch information
mih committed Jun 9, 2022
1 parent de5e4cb commit 7618392
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datalad_next/patches/push_to_export_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def _transfer_data(repo: AnnexRepo,


from datalad.interface.base import build_doc
push.Push.__call__.__doc__ = None
push.Push = build_doc(push.Push)

lgr.debug("Patching datalad.support.AnnexRepo.get_export_records (new method)")
Expand Down

0 comments on commit 7618392

Please sign in to comment.