Skip to content

Commit

Permalink
fish: cbl_qualify_tc_bld_uprev: Fix setting tc_bld_branch
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Oct 3, 2024
1 parent ab5d1be commit 2d7b343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fish/functions/cbl_qualify_tc_bld_uprev.fish
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function cbl_qualify_tc_bld_uprev -d "Qualify a new known good revision for tc-b
switch $arg
case -r --reset
set reset true
case '*'
set tc_bld_branch $arg
end
end

Expand All @@ -33,9 +35,7 @@ function cbl_qualify_tc_bld_uprev -d "Qualify a new known good revision for tc-b
end
or return

if test -n "$argv[1]"
set tc_bld_branch $argv[1]
else
if not set -q tc_bld_branch
set tc_bld_branch (git -C $tc_bld_src rev-parse --abbrev-ref --symbolic-full-name @{u})
end

Expand Down

0 comments on commit 2d7b343

Please sign in to comment.