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

Parsing error on git config #112

Closed
Closed
Assignees
Byron
@louisrli

Description

@louisrli

The error is below, doing aconfig.get_value("user", "name")

File "python-client/client.py", line 53, in <module>main()File "python-client/client.py", line 19, in mainuser_info = githelpers.get_computer_info()["user"]File "/home/sagar/dev/meteor/live-git/python-client/githelpers.py", line 35, in get_computer_infouser_name = config.get_value("user", "name")File "/usr/local/lib/python2.7/dist-packages/git/config.py", line 379, in get_valuevaluestr = self.get(section, option)File "/usr/local/lib/python2.7/dist-packages/git/config.py", line 52, in assure_data_presentself.read()File "/usr/local/lib/python2.7/dist-packages/git/config.py", line 291, in readself._read(fp, fp.name)File "/usr/local/lib/python2.7/dist-packages/git/config.py", line 262, in _readraise eConfigParser.ParsingError: File contains parsing errors: /home/sagar/.gitconfig[line 149]: '\t\tend\\n\\\n'[line 150]: '\t\tFile.open(%(%A), %(w)) {|f| f.write(b)}\\n\\\n'[line 151]: '\t\texit 1 if b.include?(%(<)*%L)\'"\n'

It happens on this .gitconfig after line 142. If you remove those parts, then it works fine.

https://github.com/cjhveal/dotfiles/blob/master/git/gitconfig.symlink

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp