Skip to content

Commit

Permalink
fix: remove unnecessary and confusing .path from error message
Browse files Browse the repository at this point in the history
Leads to such messages as

   ❯ datalad get . -r
   [WARNING] Failed to get 'tests/data-for-tests.path', skipping this submodule

which are misleading
  • Loading branch information
yarikoptic committed Nov 14, 2024
1 parent a2c30ce commit 297827d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad/support/gitrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2393,7 +2393,7 @@ def _parse_gitmodules(self) -> dict[PurePosixPath, dict[str, str]]:
# bring into traditional shape
for name, props in mods.items():
if 'path' not in props:
lgr.warning("Failed to get '%s.path', skipping this submodule", name)
lgr.warning("Failed to get '%s', skipping this submodule", name)
continue
modprops = {'gitmodule_{}'.format(k): v
for k, v in props.items()
Expand Down

0 comments on commit 297827d

Please sign in to comment.