Make it possible to set progress control outside of ProgressDlg

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Show cloning progress roughly via calculating the number of object directories

This is useful when cloning a big repository locally.

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>