Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract class RestoreUtils {
// Package private

static void doRestoreLocalSnapshot(final String snapshotNameToRestore, final RepoImpl repo, final UserLogger ulog) {
doRestoreSnapshot(snapshotNameToRestore, "file://" + mod().getWorldDirectory().toAbsolutePath(), repo, ulog);
doRestoreSnapshot(snapshotNameToRestore, mod().getWorldDirectory().toAbsolutePath().toUri().toString(), repo, ulog);
}

static void doRestoreRemoteSnapshot(final String snapshotNameToRestore, final RepoImpl repo, final UserLogger ulog) {
Expand Down Expand Up @@ -106,6 +106,10 @@ private static void native_restoreSnapshot(final String branchName, final Path r
ProcessUtils.doExec(new String[]{
"git", "-C", restoreTargetDirStr, "lfs", "install", "--local"
}, env, outputConsumer, outputConsumer);
syslog().debug("Fetching lfs objects from local repo " + repoUri);
ProcessUtils.doExec(new String[]{
"git", "-C", restoreTargetDirStr, "lfs", "fetch", "--all", repoUri
}, env, outputConsumer, outputConsumer);
syslog().debug("Checking out " + branchName + ", downloading lfs blobs");
ProcessUtils.doExec(new String[]{
"git", "-C", restoreTargetDirStr, "checkout", branchName
Expand Down
Loading