Skip to content

Error for insert header. #104

Description

@niquenen

Hi,

When I have a directory ".git" in my project the plugin return a console error and can't insert header.
The problem come from the file FileHeader.py (l.220).
https://github.com/shiyanhui/FileHeader/blob/528b71855bef7c6f42d59d4e46d3e06f0e8ab363/FileHeader.py#L220
If the line is comment the plugin work correctly :

if not error:
        #output, error = getOutputError('git config --get user.name')
        if not error and output:
                user = output
return user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions