Fixed issue #2222: 'Prune' in the pull dialog does not work

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>