Fix git buttons

#2452 

@ussuri PTAL thanks.
This will restore commit dialog even if the commitJob finishes with an error.