From 999e31089b6cd7f812e7e5787bf952d7aeec4e01 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 8 Oct 2022 00:14:09 -0700 Subject: [PATCH] cli: don't snapshot when cloning Git repo There's nothing to snapshot when we have just created an empty repo to clone into. There are also no Git refs to import. --- src/commands.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index 9f69a0c22..45d3580ea 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -4106,7 +4106,6 @@ fn do_git_clone( let git_repo = get_git_repo(repo.store())?; writeln!(ui, r#"Fetching into new repo in "{}""#, wc_path.display())?; let mut workspace_command = command.for_loaded_repo(ui, workspace, repo)?; - workspace_command.snapshot(ui)?; let remote_name = "origin"; git_repo.remote(remote_name, source).unwrap(); let mut fetch_tx = workspace_command.start_transaction("fetch from git remote into empty repo");