diff options
| author | hjk <[email protected]> | 2025-07-17 10:39:59 +0200 |
|---|---|---|
| committer | hjk <[email protected]> | 2025-07-17 08:53:48 +0000 |
| commit | 6538f6f6a6ac97cd1826352b231063c875112420 (patch) | |
| tree | 55c1c9c4d973eb3bae07909de6bdfaf012ed697b /src/plugins/git/gitclient.cpp | |
| parent | 8f652a7674a669d690b1e19f366c2c748d67115b (diff) | |
Git: Make 'git mv' work on remote projects
Change-Id: I59edb6b5583e7939874ebd7027840f03a8997813
Reviewed-by: André Hartmann <[email protected]>
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
| -rw-r--r-- | src/plugins/git/gitclient.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 6689b306c42..44080abe738 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -1560,11 +1560,10 @@ bool GitClient::synchronousDelete(const FilePath &workingDirectory, == ProcessResult::FinishedWithSuccess; } -bool GitClient::synchronousMove(const FilePath &workingDirectory, - const QString &from, - const QString &to) +bool GitClient::synchronousMove( + const FilePath &workingDirectory, const FilePath &from, const FilePath &to) { - return vcsSynchronousExec(workingDirectory, {"mv", from, to}).result() + return vcsSynchronousExec(workingDirectory, {"mv", from.path(), to.path()}).result() == ProcessResult::FinishedWithSuccess; } |
