diff options
author | Eike Ziller <[email protected]> | 2016-01-21 15:31:37 +0100 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2016-01-25 12:20:31 +0000 |
commit | a6f554833152bf96591ecce1e585450413406294 (patch) | |
tree | 79a0781a3f36eb0bd80d3e49c48ba59ed3fcf98d /src/plugins/git/gitclient.h | |
parent | a081e8c96f11b8286a9e8810e438b1209727edcf (diff) |
Git/Clean: Fix issues with submodules
- If the git config contained old entries for submodules that were
removed (they are not cleaned from the config automatically),
it would add submodules with empty "dir", which lead to infinite
recursion
- When recursing into submodules, we need to prepend the paths from the
git output with the relative path from the main repository
Change-Id: I0bc6a1973f4cdeb1c3f09c05cd7736c25471f72e
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.h')
-rw-r--r-- | src/plugins/git/gitclient.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gitclient.h b/src/plugins/git/gitclient.h index f13ddf4229f..de7e95c2600 100644 --- a/src/plugins/git/gitclient.h +++ b/src/plugins/git/gitclient.h @@ -179,7 +179,7 @@ public: bool synchronousReset(const QString &workingDirectory, const QStringList &files = QStringList(), QString *errorMessage = 0); - bool synchronousCleanList(const QString &workingDirectory, QStringList *files, QStringList *ignoredFiles, QString *errorMessage); + bool synchronousCleanList(const QString &workingDirectory, const QString &modulePath, QStringList *files, QStringList *ignoredFiles, QString *errorMessage); bool synchronousApplyPatch(const QString &workingDirectory, const QString &file, QString *errorMessage, const QStringList &arguments = QStringList()); bool synchronousInit(const QString &workingDirectory); bool synchronousCheckoutFiles(const QString &workingDirectory, @@ -377,7 +377,7 @@ private: const QString &workingDirectory, const QString &fileName, const QString &gitBinDirectory); - bool cleanList(const QString &workingDirectory, const QString &flag, QStringList *files, QString *errorMessage); + bool cleanList(const QString &workingDirectory, const QString &modulePath, const QString &flag, QStringList *files, QString *errorMessage); enum ContinueCommandMode { ContinueOnly, |