diff --git a/Cargo.lock b/Cargo.lock index 3ce24d2979..ae91974e86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -920,11 +920,11 @@ checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" [[package]] name = "git2" -version = "0.17.2" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044" +checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.4.0", "libc", "libgit2-sys", "log", @@ -1734,9 +1734,9 @@ checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" [[package]] name = "libgit2-sys" -version = "0.15.2+1.6.4" +version = "0.16.1+1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa" +checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index fcfb0b4c86..197234a6d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ dirs = "5.0.1" either = "1.9.0" esl01-renderdag = "0.3.0" futures = "0.3.29" -git2 = "0.17.2" +git2 = "0.18.1" gix = { version = "0.56.0", default-features = false, features = [ "index", "max-performance-safe", diff --git a/cli/tests/test_git_clone.rs b/cli/tests/test_git_clone.rs index fd8f70a321..cf42a26da0 100644 --- a/cli/tests/test_git_clone.rs +++ b/cli/tests/test_git_clone.rs @@ -86,7 +86,7 @@ fn test_git_clone() { insta::assert_snapshot!(stdout, @""); insta::assert_snapshot!(stderr, @r###" Fetching into new repo in "$TEST_ENV/failed" - Error: could not find repository from '$TEST_ENV/bad'; class=Repository (6) + Error: could not find repository at '$TEST_ENV/bad'; class=Repository (6) "###); assert!(!test_env.env_root().join("failed").exists()); @@ -101,7 +101,7 @@ fn test_git_clone() { insta::assert_snapshot!(stdout, @""); insta::assert_snapshot!(stderr, @r###" Fetching into new repo in "$TEST_ENV/failed" - Error: could not find repository from '$TEST_ENV/bad'; class=Repository (6) + Error: could not find repository at '$TEST_ENV/bad'; class=Repository (6) "###); assert!(test_env.env_root().join("failed").exists()); assert!(!test_env.env_root().join("failed").join(".jj").exists()); @@ -224,9 +224,9 @@ fn test_git_clone_colocate() { .map(|entry| format!("{:?} {}\n", entry.status(), entry.path().unwrap())) .collect(); insta::assert_snapshot!(git_statuses, @r###" - IGNORED .jj/.gitignore - IGNORED .jj/repo/ - IGNORED .jj/working_copy/ + Status(IGNORED) .jj/.gitignore + Status(IGNORED) .jj/repo/ + Status(IGNORED) .jj/working_copy/ "###); // The old default branch "master" shouldn't exist. @@ -262,7 +262,7 @@ fn test_git_clone_colocate() { insta::assert_snapshot!(stdout, @""); insta::assert_snapshot!(stderr, @r###" Fetching into new repo in "$TEST_ENV/failed" - Error: could not find repository from '$TEST_ENV/bad'; class=Repository (6) + Error: could not find repository at '$TEST_ENV/bad'; class=Repository (6) "###); assert!(!test_env.env_root().join("failed").exists()); @@ -280,7 +280,7 @@ fn test_git_clone_colocate() { insta::assert_snapshot!(stdout, @""); insta::assert_snapshot!(stderr, @r###" Fetching into new repo in "$TEST_ENV/failed" - Error: could not find repository from '$TEST_ENV/bad'; class=Repository (6) + Error: could not find repository at '$TEST_ENV/bad'; class=Repository (6) "###); assert!(test_env.env_root().join("failed").exists()); assert!(!test_env.env_root().join("failed").join(".git").exists());