Fix  git fatal failed to stat File name too long

fix for #6337