This PR fixes an issue when the __gitnow_check_if_branch_exist function is used along with the Fish test on if conditionals. This was occurring because the return type of the function was not consistent.
Here an example of the incoming merge command which uses __gitnow_check_if_branch_exist function.
~> merge --continue
# Invalid argument: 'Provide a valid branch name.'
# ~/.config/fish/conf.d/gitnow.fish (line 282):
# if test $v_found -eq 0
# ^
# in function 'merge' with arguments '--continue'
# Already up to date.
This PR fixes an issue when the
__gitnow_check_if_branch_exist
function is used along with the Fishtest
onif
conditionals. This was occurring because the return type of the function was not consistent.Here an example of the incoming
merge
command which uses__gitnow_check_if_branch_exist
function.