MCPcopy Create free account
hub / github.com/brocode/fw / init_additional_remotes

Function init_additional_remotes

src/git/mod.rs:137–145  ·  view source on GitHub ↗
(project: &Project, repository: Repository)

Source from the content-addressed store, hash-verified

135}
136
137fn init_additional_remotes(project: &Project, repository: Repository) -> Result<(), AppError> {
138 if let Some(additional_remotes) = &project.additional_remotes {
139 for remote in additional_remotes {
140 let mut git_remote = repository.remote(&remote.name, &remote.git)?;
141 update_remote(&mut git_remote)?;
142 }
143 }
144 Ok(())
145}
146
147#[cfg(test)]
148mod tests {

Callers 1

clone_projectFunction · 0.85

Calls 1

update_remoteFunction · 0.85

Tested by

no test coverage detected