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

GitConfigParser preserves quotes #2061

Closed
@NMertsch

Description

@NMertsch

According to thegit documentation, wrapping quotes are not part of a config value:

Ifvalue needs to contain leading or trailing whitespace characters, it must be enclosed in double quotation marks (").

See the git CLI:

$ cat .git/config[user]        name ="Jane Doe"$ git config get user.nameJane Doe

However, GitPython preserves quotes:

>>>fromgit.configimportGitConfigParser>>>parser=GitConfigParser(".git/config")>>>username=parser.get_value("user","name")>>>print(username)"Jane Doe"

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