frostming / legit

Git for Humans, Inspired by GitHub for Mac™.
https://frostming.github.io/legit
BSD 3-Clause "New" or "Revised" License
5.7k stars 218 forks source link

Fix two minor errors #248

Closed neersighted closed 4 years ago

neersighted commented 5 years ago

A bug involving mismatched str and bytes appears when allow_black_foreground is false on Python 3; removing .encode from the black() function resolves this.

Additionally, legit --config starts an editor with the path to the config in the buffer, instead of opening the config itself. The filename= kwarg needs to be used to correctly open the file.