Another possible path error fix.

This commit is contained in:
WrinklyNinja
2014-06-26 17:45:32 +01:00
parent 5ad177b9ce
commit 54e2692655
+1 -1
View File
@@ -229,7 +229,7 @@ namespace loot {
//Now perform the clone.
git.call(git_clone(&git.repo, game.RepoURL().c_str(), repo_path.string().c_str(), &clone_options));
if (!wasEmpty) {
if (fs::exists(repo_path.string() + ".temp")) {
//Move contents back in.
BOOST_LOG_TRIVIAL(trace) << "Repo path wasn't empty, moving previous files back in.";
for (fs::directory_iterator it(repo_path.string() + ".temp"); it != fs::directory_iterator(); ++it) {