diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 2fa0d93d5de..96bb42a0eea 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -1248,7 +1248,7 @@ void GitClient::archive(const QString &workingDirectory, QString commit) return; QString extension = filters.value(selectedFilter); QFileInfo archive(archiveName); - if (archive.completeSuffix() != extension) { + if (extension != "." + archive.completeSuffix()) { archive = QFileInfo(archive.filePath() + extension); }