FileHeader
FileHeader copied to clipboard
Error for insert header.
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
Your solution can fix this problem. but, whether has another better way ?