git hook script output is added with annoying “[K” postfix
We have a git server that is using msysgit 1.7.11,
We have a setup where we added a post receive hook script,
This script is running a .sh script file that is calling to a .NET executable, so the output for
this executable is going back to git and through our server back to the client with an annoying “[K” postfix (that is not shown in the console but it does in tools like “git gui”
... remote: New deployment received.[K remote: Updating branch 'master'.[K ...
Any way to fix this and remove the “[K” postfix?
One Solution collect form web for “git hook script output is added with annoying “[K” postfix”
My psychic debugging skills indicate that this
[K is probably part of a terminal escape sequence used for clearing to the end of the line (see http://www.termsys.demon.co.uk/vtansi.htm). It sounds like this is probably being generated by the .NET executable as it displays its status messages (which on a normal console, would overwrite one another instead of appearing on separate lines).