my patches for gitblit while waiting for proper solution