Am 10/7/2010 16:35, schrieb Kirill Likhodedov:
My bad, this happens only on Windows (at least not on Mac OS X).
With git rev-list, it also happens on Linux:
$ git log -1 --pretty=foo%x00bar HEAD | od -c
0000000 f o o \0 b a r \n
0000010
$ git rev-list -1 --pretty=foo%x00bar HEAD | od -c
0000000 c o m m i t 8 7 f a f 1 0 9 0
0000020 5 d 1 f 8 a b 1 e 9 a c 2 4 c c
0000040 3 e f e d 8 1 f a 7 e 2 9 6 7 \n
0000060 f o o \n
0000064
$ git version
git version 1.7.3.67.gcc234
-- Hannes