Merge branch 'simplify-get-branch-script' into 'master'
Simplify get_branch script See merge request micro-ROS/ros_tracing/tracetools_analysis!60
This commit is contained in:
commit
401d219400
1 changed files with 2 additions and 5 deletions
|
@ -109,11 +109,8 @@ def main() -> int:
|
|||
)
|
||||
|
||||
# Print value
|
||||
prefix = 'branch: ' if check else ''
|
||||
if branch is None:
|
||||
print(prefix + default_branch)
|
||||
else:
|
||||
print(prefix + branch)
|
||||
prefix = 'ros2_tracing branch: ' if check else ''
|
||||
print(prefix + (branch or default_branch))
|
||||
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue