Commit 516520c
committed
cmd/git(fix[show]): Fix incorrect boolean condition for no_query_remotes
why: The condition `if no_query_remotes is not None or no_query_remotes:`
incorrectly adds the -n flag when no_query_remotes=False, because
`False is not None` evaluates to True.
what:
- Change condition to `if no_query_remotes:` in GitRemoteCmd.show()
- Change condition to `if no_query_remotes:` in GitRemoteManager.show()1 parent 239c790 commit 516520c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3813 | 3813 | | |
3814 | 3814 | | |
3815 | 3815 | | |
3816 | | - | |
| 3816 | + | |
3817 | 3817 | | |
3818 | 3818 | | |
3819 | 3819 | | |
| |||
4298 | 4298 | | |
4299 | 4299 | | |
4300 | 4300 | | |
4301 | | - | |
| 4301 | + | |
4302 | 4302 | | |
4303 | 4303 | | |
4304 | 4304 | | |
| |||
0 commit comments