aboutsummaryrefslogtreecommitdiff
path: root/pack-redundant.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-02 15:10:56 -0700
committerJunio C Hamano <gitster@pobox.com>2007-08-02 17:26:26 -0700
commit6490a3383f1d0d96c122069e510ef1af1d019fbb (patch)
tree2f53fc4f0484afc619dea3b589d5eb9cdc228b4a /pack-redundant.c
parent29093c28a21d75500e9388ad103b9af9a0bab1ae (diff)
downloadgit-6490a3383f1d0d96c122069e510ef1af1d019fbb.tar.gz
git-6490a3383f1d0d96c122069e510ef1af1d019fbb.tar.xz
Fix work-tree related breakages
In set_work_tree(), variable rel needs to be reinitialized to NULL on every call (it should not be static). Make sure the incoming dir variable is not too long before copying to the temporary buffer, and make sure chdir to the resulting directory succeeds. This was spotted and fixed by Alex and Johannes in a handful patch exchanges. Here is the final version. Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Diffstat (limited to 'pack-redundant.c')
0 files changed, 0 insertions, 0 deletions