Skip to content

Commit 90a109b

Browse files
committed
allow fetch in both tabs of branch list
1 parent 8b665a4 commit 90a109b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ These defaults require some adoption from existing users but feel more natural t
2727
* support for new-line in text-input (e.g. commit message editor) [[@pm100]](https://github/pm100) ([#1662](https://github.com/extrawurst/gitui/issues/1662)).
2828
* new style `block_title_focused` to allow customizing title text of focused frame/block ([#2052](https://github.com/extrawurst/gitui/issues/2052)).
2929
* add syntax highlighting for blame view [[@tdtrung17693](https://github.com/tdtrung17693)] ([#745](https://github.com/extrawurst/gitui/issues/745))
30+
* allow `fetch` command in both tabs of branchlist popup ([#2067](https://github.com/extrawurst/gitui/issues/2067))
3031

3132
### Changed
3233
* do not allow tagging when `tag.gpgsign` enabled until gpg-signing is [supported](https://github.com/extrawurst/gitui/issues/97) [[@TeFiLeDo](https://github.com/TeFiLeDo)] ([#1915](https://github.com/extrawurst/gitui/pull/1915))

src/popups/branchlist.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl Component for BranchListPopup {
208208
out.push(CommandInfo::new(
209209
strings::commands::fetch_remotes(&self.key_config),
210210
self.has_remotes,
211-
!self.local,
211+
true,
212212
));
213213

214214
out.push(CommandInfo::new(
@@ -290,7 +290,7 @@ impl Component for BranchListPopup {
290290
));
291291
}
292292
} else if key_match(e, self.key_config.keys.fetch)
293-
&& !self.local && self.has_remotes
293+
&& self.has_remotes
294294
{
295295
self.queue.push(InternalEvent::FetchRemotes);
296296
} else if key_match(
@@ -396,7 +396,7 @@ impl BranchListPopup {
396396
}
397397

398398
fn check_remotes(&mut self) {
399-
if !self.local && self.visible {
399+
if self.visible {
400400
self.has_remotes =
401401
get_branches_info(&self.repo.borrow(), false)
402402
.map(|branches| !branches.is_empty())

0 commit comments

Comments
 (0)