mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 00:14:52 +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<()> {
|
pub fn update(&mut self) -> Result<()> {
|
||||||
if self.is_visible() {
|
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(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user