cache_tree_find(): use path variable when passing over slashes
commit3491047e14532f4c01e3459d59d914d9598721c5
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 5 Mar 2014 17:26:30 +0000 (5 18:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2014 20:34:26 +0000 (5 12:34 -0800)
treeac5567375334dfe58019b9083e4633978cbf8a3d
parent8b7e5f79723b0f2e1d3dca4e959ad2a2041e9453
cache_tree_find(): use path variable when passing over slashes

The search for the end of the slashes is part of the update of the
path variable for the next iteration as opposed to an update of the
slash variable.  So iterate using path rather than slash.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c