setup_git_env: use git_pathdup instead of xmalloc + sprintf
commita0279e1865c7ce7417c0134e2ab32b20531f502a
authorJeff King <peff@peff.net>
Thu, 19 Jun 2014 21:28:00 +0000 (19 17:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2014 22:20:55 +0000 (19 15:20 -0700)
tree1033a3f6cf8dd7435e34cd398e239b134b8fe1d0
parentb2724c87872aaec55dd7e5529aa029c3108b43a5
setup_git_env: use git_pathdup instead of xmalloc + sprintf

This is shorter, harder to get wrong, and more clearly
captures the intent.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c