aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2025-07-17 10:39:59 +0200
committerhjk <hjk@qt.io>2025-07-17 08:53:48 +0000
commit6538f6f6a6ac97cd1826352b231063c875112420 (patch)
tree55c1c9c4d973eb3bae07909de6bdfaf012ed697b /src/plugins/git/gitplugin.cpp
parent8f652a7674a669d690b1e19f366c2c748d67115b (diff)
Git: Make 'git mv' work on remote projects
Change-Id: I59edb6b5583e7939874ebd7027840f03a8997813 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitplugin.cpp')
-rw-r--r--src/plugins/git/gitplugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp
index ea8bb3bdfd7..d46cf1ddf37 100644
--- a/src/plugins/git/gitplugin.cpp
+++ b/src/plugins/git/gitplugin.cpp
@@ -1928,9 +1928,7 @@ bool GitPluginPrivate::vcsDelete(const FilePath &filePath)
bool GitPluginPrivate::vcsMove(const FilePath &from, const FilePath &to)
{
- const QFileInfo fromInfo = from.toFileInfo();
- const QFileInfo toInfo = to.toFileInfo();
- return gitClient().synchronousMove(from.absolutePath(), fromInfo.absoluteFilePath(), toInfo.absoluteFilePath());
+ return gitClient().synchronousMove(from.absolutePath(), from, to);
}
bool GitPluginPrivate::vcsCreateRepository(const FilePath &directory)