Perform much more sanity checks

(fixes issue #1983)

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Preserve empty lines in commit message

CString.Tokenize skips empty tokens.

Regression of 5076b9aca9b0324ecc2901068c3572d0a0157b3e.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
SyncDlg: Switch to Ref Compare List after fetch / remote prune

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