Fix some debug messages
This commit is contained in:
parent
6b6f30b80a
commit
ae043f5cd2
|
@ -35,14 +35,13 @@ fn main() -> Result<(), std::io::Error> {
|
|||
// Skip task which has CONFIG/task.ignore
|
||||
continue;
|
||||
}
|
||||
println!("TASK: {:?}", task.name);
|
||||
|
||||
let mut context = HashMap::new();
|
||||
context.insert("$i18n_task", task.name.as_str());
|
||||
log::debug("found_task", Some(&context));
|
||||
// Maybe the task has a source we should clone?
|
||||
if let Some(repo) = &task.repo {
|
||||
context.insert("$i18n_source", &repo.source);
|
||||
context.insert("$source", &repo.source);
|
||||
let source_dir = format!("{}/.{}", base_dir, &task.name);
|
||||
if task.cloned == false {
|
||||
log::info("clone", Some(&context));
|
||||
|
|
|
@ -82,13 +82,9 @@ impl Task {
|
|||
|
||||
pub fn checkout(&self) {
|
||||
if let Some(branch) = &self.branch {
|
||||
println!("requesting branch");
|
||||
if let Some(repo) = &self.repo {
|
||||
println!("has repo");
|
||||
repo.checkout(branch);
|
||||
}
|
||||
} else {
|
||||
println!("no ranch requested");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue