Skip to content
Browse files

Do not show deleted branch when reloading the branch view

Reported by Vivien.
  • Loading branch information...
1 parent a2636d7 commit d102df05fb46f243bb2d913a4a4c32643e792f20 @jonas jonas committed
Showing with 2 additions and 1 deletion.
  1. +1 −0 NEWS
  2. +1 −1 refs.c
View
1 NEWS
@@ -54,6 +54,7 @@ Bug fixes:
- Support submodules created with current version of git. (GH #54)
- Fix diff status message for file diffs with no content changes.
- Fix parent blaming when tig is launched in subdirectory. (GH #70)
+ - Do not show deleted branch when reloading the branch view.
tig-1.0
-------
View
2 refs.c
@@ -54,7 +54,7 @@ foreach_ref(bool (*visitor)(void *data, const struct ref *ref), void *data)
size_t i;
for (i = 0; i < refs_size; i++)
- if (!visitor(data, refs[i]))
+ if (refs[i]->id[0] && !visitor(data, refs[i]))
break;
}

0 comments on commit d102df0

Please sign in to comment.
Something went wrong with that request. Please try again.