Print repository state (if any operation in progress). Also fix unicode issue.
Update git.lua to match the latest formatting.
Restore code page after writing to console.