Skip to content

Commit 6560fec

Browse files
Add documentation on git_clone_root_dir
1 parent aed59f0 commit 6560fec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_system/src/utils.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ pub fn git_clone(
307307
git_clone_inner(to_clone, dest, shallow_clone, repo_name)
308308
}
309309

310+
/// This function differs from `git_clone` in how it handles *where* the repository will be cloned.
311+
/// In `git_clone`, it is cloned in the provided path. In this function, the path you provide is
312+
/// the parent folder. So if you pass "a" as folder and try to clone "b.git", it will be cloned into
313+
/// `a/b`.
310314
pub fn git_clone_root_dir(
311315
to_clone: &str,
312316
dest_parent_dir: &Path,

0 commit comments

Comments
 (0)