Don't disable create branch button on incorrect branch pattern.
Restore commit dialog even if commit finishes with an error.
Merge pull request #2456 from dart-lang/fix_git_buttons

Fix git buttons