Skip to content

Commit 352d216

Browse files
committed
Allow checkouts of empty repositories
1 parent 201ec78 commit 352d216

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gix/src/clone/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ impl PrepareFetch {
9999
mut url: gix_url::Url,
100100
path: &std::path::Path,
101101
kind: crate::create::Kind,
102-
mut create_opts: crate::create::Options,
102+
create_opts: crate::create::Options,
103103
open_opts: crate::open::Options,
104104
) -> Result<Self, Error> {
105-
create_opts.destination_must_be_empty = true;
106105
let mut repo = crate::ThreadSafeRepository::init_opts(path, kind, create_opts, open_opts)?.to_thread_local();
107106
url.canonicalize(repo.options.current_dir_or_empty())
108107
.map_err(|err| Error::CanonicalizeUrl {

0 commit comments

Comments
 (0)