MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / init

Function init

flow-quickstart/src/git.rs:323–330  ·  view source on GitHub ↗
(project_dir: &Path, branch: &str)

Source from the content-addressed store, hash-verified

321}
322
323pub fn init(project_dir: &Path, branch: &str) -> Result<Repository> {
324 Repository::discover(project_dir).or_else(|_| {
325 let mut opts = RepositoryInitOptions::new();
326 opts.bare(false);
327 opts.initial_head(branch);
328 Repository::init_opts(project_dir, &opts).context("Couldn't init new repository")
329 })
330}
331
332/// determines what kind of repository we got
333fn determine_repo_kind(remote_url: &str) -> RepoKind {

Callers 2

exportFunction · 0.85
decode_videoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected