Commit a547b6af authored by Orgad Shaneh's avatar Orgad Shaneh

Git: Fix unstaging modified files

Regression introduced in ab85e734

Change-Id: I92ec1f9d45b713d426fdae99d16e93ba5eb455cb
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 66c51cd3
......@@ -1906,7 +1906,7 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory,
filesToAdd.append(file);
if ((state & StagedFile) && !checked) {
if (state & (AddedFile | DeletedFile)) {
if (state & (ModifiedFile | AddedFile | DeletedFile)) {
filesToReset.append(file);
} else if (state & (RenamedFile | CopiedFile)) {
const QString newFile = file.mid(file.indexOf(renameSeparator) + renameSeparator.count());
......
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