mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
do not fetch filetree on empty repo (closes #859)
This commit is contained in:
parent
2402777427
commit
f7ecc0e194
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue