summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-27 01:49:00 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-28 10:16:46 (GMT)
commit47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8 (patch)
tree48ed1a524b2a77a0608fc22147334717b3e18342 /sha1_name.c
parent8b5157e40718a2ee1d645c342d93df4e66335479 (diff)
downloadgit-47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8.zip
git-47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8.tar.gz
git-47fc52e2876ed3a54cd4b77e0b0c4875fa3317b8.tar.bz2
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 'sha1_name.c')
0 files changed, 0 insertions, 0 deletions