-
Notifications
You must be signed in to change notification settings - Fork 5
Store decoded branch name instead of bytes #664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ecd1a3f
to
8c2b21b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #664 +/- ##
==========================================
- Coverage 71.90% 71.84% -0.07%
==========================================
Files 48 48
Lines 3271 3271
Branches 576 576
==========================================
- Hits 2352 2350 -2
- Misses 704 705 +1
- Partials 215 216 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Hello @nicogodet, Can you explain a bit why this change please? |
qgis-deployment-toolbelt-cli/qgis_deployment_toolbelt/profiles/profiles_handler_base.py Line 62 in 38859d1
Without this change, the type of this variable becomes mixed But indeed, it needs to be converted to bytes at some point (here) but it's cleaner to let the function handles the conversion instead of store the branch name as bytes In my case, I relied on str type when testing #661 and I end up comparing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested locally in different circumstances and it looks that it did not break anything, so let's move on!
8c2b21b
to
f7551aa
Compare
f7551aa
to
0376961
Compare
|
DESTINATION_BRANCH_TO_USE
qgis-deployment-toolbelt-cli/qgis_deployment_toolbelt/profiles/profiles_handler_base.py
Line 62 in 38859d1
qgis-deployment-toolbelt-cli/qgis_deployment_toolbelt/profiles/local_git_handler.py
Lines 98 to 104 in 38859d1
Without this change, the type of this variable becomes mixed
str | bytes
But indeed, it needs to be converted to bytes at some point (here) but it's cleaner to let the function handles the conversion instead of store the branch name as bytes
In my case, I relied on str type when testing #661 and I end up comparing
"main"
withb"main"
equals False