mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-23 03:32:30 +03:00
do not fetch filetree on empty repo (closes #859)
This commit is contained in:
parent
2402777427
commit
f7ecc0e194
@ -49,7 +49,9 @@ impl FilesTab {
|
||||
///
|
||||
pub fn update(&mut self) -> Result<()> {
|
||||
if self.is_visible() {
|
||||
self.files.set_commit(sync::get_head(CWD)?)?;
|
||||
if let Ok(head) = sync::get_head(CWD) {
|
||||
self.files.set_commit(head)?;
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user