Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'user' section of config exists for sections() but not items methods #1711

Open
@pushfoo

Description

@pushfoo

This appears to work fine:

>>>reader=repo_instance.config_reader()>>>reader.sections()['filter "lfs"','core','user']

However, these do not:

>>>reader.items('user')NoSectionError:"No section: 'user'">>>reader.items_all('user')KeyError:'user'

I've confirmed the section exists in the repo's local.git/config as follows:

[user]        name = pushfoo        email = 36696816+pushfoo@users.noreply.github.com

If this is due to misuse on my part, please let me know how. I'd be willing to try to make a PR to do the following:

  1. Make the exceptions more consistent
  2. Update relevant doc to be clearer
  3. Fix underlying bugs

Depending on how far down into git's internals I need to go, the last option may require some guidance from project leads.

EDIT: Version info:

DetailValueComments
Python Version3.9.2Stock for Debian 11
Git version2.30.2Stock for Debian 11
OS / versionDebian 11No major customization have been applied
GitPthon version3.1.37default forpip install
gitdb version4.0.10default installed by above

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp