Execute pre push hook just before executing git push and not on loading the dialog

This makes the pre push hook on the push dialog behave the same as on the sync dialog.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Call post push hook even if push wasn't successful

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Add start and pre commit hooks

(fixes issue #1605)

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Do not use 100% CPU while waiting for hook scripts to finish

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Correctly report errors of CreateFile

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Minor code cleanup

Signed-off-by: Sven Strickroth <email@cs-ware.de>