Code

for-each-ref: fix objectname:short bug
authorJay Soffian <jaysoffian@gmail.com>
Thu, 26 Aug 2010 21:34:29 +0000 (17:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Aug 2010 23:42:25 +0000 (16:42 -0700)
commitea16a030aaaaebb3d0038e3ec2d9cd837985dee0
tree16a834ed395a18a402613d93ccbfa17d074386c4
parent2244eab01bfef95621ab61d2d08a3d21ba1353cf
for-each-ref: fix objectname:short bug

When objectname:short was introduced, it forgot to copy the result of
find_unique_abbrev. Because the result of find_unique_abbrev is a
pointer to static buffer, this resulted in the same value being
substituted in for each ref.

Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c