mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
fix git log
This commit is contained in:
parent
3372704147
commit
1c8d4577f7
@ -23,12 +23,14 @@ impl GitWatcher {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn watch(&self, window: tauri::Window, project_id: String) -> Result<()> {
|
||||
pub fn watch(&self, window: tauri::Window, project: projects::Project) -> Result<()> {
|
||||
log::info!("Watching git for {}", project.path);
|
||||
|
||||
let shared_self = std::sync::Arc::new(self.clone());
|
||||
let self_copy = shared_self.clone();
|
||||
let project_id = project.id;
|
||||
|
||||
thread::spawn(move || loop {
|
||||
log::info!("Watching git for {}", project.path);
|
||||
let local_self = &self_copy;
|
||||
|
||||
let project = local_self.projects_storage.get_project(&project_id);
|
||||
|
@ -27,7 +27,7 @@ impl<'a> Watcher<'a> {
|
||||
|
||||
pub fn watch(&self, window: tauri::Window, project: &projects::Project) -> Result<()> {
|
||||
self.delta_watcher.watch(window.clone(), project.clone())?;
|
||||
self.git_watcher.watch(window.clone(), project.id.clone())?;
|
||||
self.git_watcher.watch(window.clone(), project.clone())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user