forked from qt-creator/qt-creator
Git: Disallow Commit and Push if rebase is in progress
Change-Id: I35a6cf850bccf076d22a73b98b0422663c61b1d3 Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c07eaa2a25
commit
1f0cbbc807
@@ -3046,6 +3046,15 @@ bool GitClient::getCommitData(const QString &workingDirectory,
|
||||
}
|
||||
|
||||
commitData.enablePush = !synchronousRemotesList(repoDirectory).isEmpty();
|
||||
if (commitData.enablePush) {
|
||||
switch (checkCommandInProgress(repoDirectory)) {
|
||||
case GitClient::Rebase:
|
||||
case GitClient::RebaseMerge:
|
||||
commitData.enablePush = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user