Fixed issue #1675: delete/ignore does not delete folder from repo when local copy is kept

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #1676: Automatically check "Make it Bare" when repository path ends in ".git"

Based on a patch by sander@paralleldimension.nl

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