pre-recieve hook giving strange [K line endings with remote output in SourceTree

When my pre-receive bash script hook outputs via echo "foo" or `git cat-file blob` etc... i get output like

remote: foo bar [K

remote: baz bang [K

remote: biz bop boop bap bing [K

with those '[K' getting appended to everyline, i am not sure what is causing it or how to get rid of it. It only seems to happen on lines that have text on it, not blank lines, but i might be wrong about that.

EDIT:

It seems this strange string has a esc caracter in it, from the ascii tables

Oct Dec Hex Char

033 27 1B ESC (escape)

3 answers

Same issue!

It only seems to happen on lines that have text on it, not blank lines

Only happens with non-empty lines.

0 vote

Hi all,

Please refer to the bug report at https://jira.atlassian.com/browse/SRCTREEWIN-2766

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you