- 기존에는
git-p4.py
코드를 수정해서 사용했었음: https://gitlab.com/b6pzeusbc54tvhw5jgpyw8pwz2x6gs/git-p4-support-hangul git-p4.py
의 업데이트를 따라가기 어려움.
- 일단 깨진 상태로 clone 받은 후 아래의
filter-branch
명령을 사용하여 해결 가능.
$ git filter-branch -f --commit-filter '
author_type=$( echo $GIT_AUTHOR_NAME | file -b --mime-encoding - )
author=$( echo $GIT_AUTHOR_NAME | iconv -f $author_type -t UTF-8 )
GIT_AUTHOR_NAME=$author
committer_type=$( echo $GIT_COMMITTER_NAME | file -b --mime-encoding - )
committer=$( echo $GIT_COMMITTER_NAME | iconv -f $committer_type -t UTF-8 )
GIT_COMMITTER_NAME=$committer
git commit-tree "$@";' --msg-filter '
cat > .commitmsg
type=cp949
( cat .commitmsg|iconv -f $type -t UTF-8 )
if [ $? != 0 ];
then
echo $COMMIT
fi
' HEAD
우분투 18에서 패키지 추가 없이 바로 됐었던 기억.