Fix git buttons

#2452 

@ussuri PTAL thanks.
While above disabling doesn't work, it works totally fine here.