diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2008-10-26 23:07:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-26 22:10:28 -0700 |
commit | 94cc355287a7efc3eda76af6ae31f503a1ac098b (patch) | |
tree | 1e074ff609f880d031f25f5866dec1cad5eb6c3a /archive.h | |
parent | 108bebeab31881654b7b0f1b5b393a6655d74d3f (diff) | |
download | git-94cc355287a7efc3eda76af6ae31f503a1ac098b.tar.gz git-94cc355287a7efc3eda76af6ae31f503a1ac098b.tar.xz |
Fix mkpath abuse in dwim_ref and dwim_log of sha1_name.c
Otherwise the function sometimes fail to resolve obviously correct
refnames, because the string data pointed to by "str" argument were
reused.
The change in dwim_log does not fix anything, just optimizes away
strcpy code as the path can be created directly in the available
buffer.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.h')
0 files changed, 0 insertions, 0 deletions