Fixed issue #1572: Push Dialog can select arbitrary kind of ref

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