FileHeader icon indicating copy to clipboard operation
FileHeader copied to clipboard

Error for insert header.

Open niquenen opened this issue 7 years ago • 1 comments

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

niquenen avatar Sep 05 '18 08:09 niquenen

Your solution can fix this problem. but, whether has another better way ?

fanser avatar May 06 '19 07:05 fanser