diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-26 17:49:00 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-28 02:16:46 -0800 |
commit | 47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8 (patch) | |
tree | 48ed1a524b2a77a0608fc22147334717b3e18342 /builtin-diff-files.c | |
parent | 8b5157e40718a2ee1d645c342d93df4e66335479 (diff) | |
download | git-47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8.tar.gz git-47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8.tar.xz |
create_symref(): do not assume pathname from git_path() persists long enough
Being lazy to rely on the cycling N buffers mkpath() and friends
return is nice in general, but it makes it too easy to introduce
new bugs that are "mysterious".
Introduction of read_ref() in create_symref() after calling
git_path() to get the git_HEAD value (i.e. the path to create a
new symref at) consumed more than the available buffers and
broke a later call to mkpath() that derives lockpath from it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff-files.c')
0 files changed, 0 insertions, 0 deletions