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

Gideon Dominick October 17, 2013

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

0 votes
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 9, 2014

Hi all,

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

0 votes
rsmike March 27, 2014

Same issue!

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

Only happens with non-empty lines.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events