forked from qt-creator/qt-creator
Git: Do not fail on amend if no files were modified
Task-number: QTCREATORBUG-6916 Change-Id: I44d69bdd11487388163723dffa56a6690ac14239 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
4406000cdc
commit
8b6a2b0a85
@@ -1732,7 +1732,7 @@ bool GitClient::getCommitData(const QString &workingDirectory,
|
||||
}
|
||||
commitData->files = filteredFiles;
|
||||
|
||||
if (commitData->files.isEmpty()) {
|
||||
if (commitData->files.isEmpty() && !amend) {
|
||||
*errorMessage = msgNoChangedFiles();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user