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 votes

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
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

992 views 2 3
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