feat: only do clone if not exists
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
784c7303a5
commit
cc70131101
@ -85,6 +85,14 @@ impl RootCommand {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let project_path = self
|
||||||
|
.app
|
||||||
|
.config
|
||||||
|
.settings
|
||||||
|
.projects
|
||||||
|
.directory
|
||||||
|
.join(repo.to_rel_path());
|
||||||
|
if !project_path.exists() {
|
||||||
if clone {
|
if clone {
|
||||||
let git_clone = self.app.git_clone();
|
let git_clone = self.app.git_clone();
|
||||||
|
|
||||||
@ -106,6 +114,9 @@ impl RootCommand {
|
|||||||
} else {
|
} else {
|
||||||
tracing::info!("skipping clone for repo: {}", &repo.to_rel_path().display());
|
tracing::info!("skipping clone for repo: {}", &repo.to_rel_path().display());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
tracing::info!("repository already exists");
|
||||||
|
}
|
||||||
|
|
||||||
if shell {
|
if shell {
|
||||||
self.app.shell().spawn_shell(&repo).await?;
|
self.app.shell().spawn_shell(&repo).await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user