From 9654df9f1f92ab2c1548c10ca614a6ab82783ac4 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Thu, 25 Apr 2013 13:04:45 +0200 Subject: Git: Allow direct push after commit Git commit dialog: Added a drop-down menu to the commit button to execute "git push" or open the "Push to Gerrit" dialog directly after a commit or amend. Task-number: QTCREATORBUG-8854 Change-Id: I00ff8f816d1768e0cdaf6929126b55826788e578 Reviewed-by: Petar Perisin Reviewed-by: Orgad Shaneh --- src/plugins/git/gitclient.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/git/gitclient.cpp') diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index c952df8b1b..124a0d63a4 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -3044,6 +3044,8 @@ bool GitClient::getCommitData(const QString &workingDirectory, case FixupCommit: break; } + + commitData.panelData.hasRemotes = !synchronousRemotesList(repoDirectory).isEmpty(); return true; } -- cgit v1.2.1