diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2022-10-11 16:08:14 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2022-10-11 13:49:50 +0000 |
commit | 82b2b2cae98b353208a6eb39740ab7274ef752e3 (patch) | |
tree | 0859daa3cfb99fa660c7871c71291f176bef07fa /src/plugins/git | |
parent | 5f4612dd07362c6da07e4ba3d7ffe4133b26043b (diff) |
VCS: Fix misuses of parentDir().absolutePath()
absolutePath() *is* the parent directory.
Change-Id: I59f2c4ae65b265270d432f381258b95c65e53581
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index f2e277a755..0972ac8b36 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -1841,7 +1841,7 @@ bool GitPluginPrivate::vcsMove(const FilePath &from, const FilePath &to) { const QFileInfo fromInfo = from.toFileInfo(); const QFileInfo toInfo = to.toFileInfo(); - return m_gitClient.synchronousMove(from.parentDir().absolutePath(), fromInfo.absoluteFilePath(), toInfo.absoluteFilePath()); + return m_gitClient.synchronousMove(from.absolutePath(), fromInfo.absoluteFilePath(), toInfo.absoluteFilePath()); } bool GitPluginPrivate::vcsCreateRepository(const FilePath &directory) |