Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Merge requests
!134
Add compatibility for Python 3.6: follow-up
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add compatibility for Python 3.6: follow-up
hmenke/mpsd-software-manager:python3.6
into
main
Overview
0
Commits
3
Pipelines
4
Changes
1
Merged
Henri Menke
requested to merge
hmenke/mpsd-software-manager:python3.6
into
main
1 year ago
Overview
0
Commits
3
Pipelines
4
Changes
1
Expand
This is a follow-up on
!132 (merged)
which fixes some stuff that I missed.
0
0
Merge request reports
Viewing commit
79e4743f
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
79e4743f
Compatibility with str.removeprefix
· 79e4743f
Henri Menke
authored
1 year ago
src/mpsd_software_manager/utils/filesystem_utils.py
+
2
−
2
Options
@@ -129,9 +129,9 @@ def clone_repo(
[
"
git
"
,
"
branch
"
,
"
-a
"
],
check
=
True
,
capture_output
=
True
)
branches_list
=
branches_result
.
stdout
.
decode
().
split
(
"
\n
"
)
# strip off 'remotes/origin' (needs Python 3.9):
removeprefix
=
lambda
s
,
p
:
s
[
len
(
p
)
:]
if
s
.
startswith
(
p
)
else
s
# noqa
branches_list
=
[
b
.
strip
().
removeprefix
(
"
remotes/origin/
"
)
for
b
in
branches_list
removeprefix
(
b
.
strip
(),
"
remotes/origin/
"
)
for
b
in
branches_list
]
msg
+=
f
"
Available branches are
{
branches_list
}
"
logging
.
error
(
msg
)
Loading