Skip to content

Commit

Permalink
Merge pull request #133 from ruimaciel/117_reset
Browse files Browse the repository at this point in the history
Fix bug #117 by enclosing filename in double quotes
  • Loading branch information
soramimi authored Nov 2, 2023
2 parents ccd58dc + b168425 commit f26dfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Git.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ bool Git::cat_file(CommitID const &id, QByteArray *out)

void Git::resetFile(QString const &path)
{
git("checkout -- " + path);
git("checkout -- \"" + path + "\"");
}

void Git::resetAllFiles()
Expand Down

0 comments on commit f26dfb4

Please sign in to comment.