forked from qt-creator/qt-creator
Git: Fix compiler warnings
Unhandled enum values in switch Change-Id: I6533d8773ff4fa663a1e33c1f95c81f53790b642 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ac9f9526f9
commit
1ca6842bcd
@@ -3047,12 +3047,9 @@ bool GitClient::getCommitData(const QString &workingDirectory,
|
|||||||
|
|
||||||
commitData.enablePush = !synchronousRemotesList(repoDirectory).isEmpty();
|
commitData.enablePush = !synchronousRemotesList(repoDirectory).isEmpty();
|
||||||
if (commitData.enablePush) {
|
if (commitData.enablePush) {
|
||||||
switch (checkCommandInProgress(repoDirectory)) {
|
CommandInProgress commandInProgress = checkCommandInProgress(repoDirectory);
|
||||||
case GitClient::Rebase:
|
if (commandInProgress == Rebase || commandInProgress == RebaseMerge)
|
||||||
case GitClient::RebaseMerge:
|
|
||||||
commitData.enablePush = false;
|
commitData.enablePush = false;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user