Commit 1ca6842b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Fix compiler warnings

Unhandled enum values in switch

Change-Id: I6533d8773ff4fa663a1e33c1f95c81f53790b642
Reviewed-by: default avatarNikolai Kosjar <>
parent ac9f9526
......@@ -3047,12 +3047,9 @@ bool GitClient::getCommitData(const QString &workingDirectory,
commitData.enablePush = !synchronousRemotesList(repoDirectory).isEmpty();
if (commitData.enablePush) {
switch (checkCommandInProgress(repoDirectory)) {
case GitClient::Rebase:
case GitClient::RebaseMerge:
CommandInProgress commandInProgress = checkCommandInProgress(repoDirectory);
if (commandInProgress == Rebase || commandInProgress == RebaseMerge)
commitData.enablePush = false;
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment