Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
c5b5949c
Commit
c5b5949c
authored
1 year ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
data-setup: make it work with the weird work-1 version
click kept feeding use bytes instead of Path, so we had to adapt.
parent
b9a8a851
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
suites/hg/setup-data/setup-full.py
+5
-1
5 additions, 1 deletion
suites/hg/setup-data/setup-full.py
with
5 additions
and
1 deletion
suites/hg/setup-data/setup-full.py
+
5
−
1
View file @
c5b5949c
...
...
@@ -65,7 +65,9 @@
ARGS:
DATA_ENV: Path to the data-env folder containing the main repository
"""
if
isinstance
(
data_env
,
bytes
):
data_env
=
data_env
.
decode
(
"
utf8
"
)
data_env
=
Path
(
data_env
)
description_file
=
data_env
/
"
data-env.poulpe
"
if
description_file
.
exists
():
if
force
:
...
...
@@ -86,6 +88,8 @@
if
name
is
None
:
name
=
data_env
.
name
if
isinstance
(
repo
,
bytes
):
repo
=
repo
.
decode
(
"
utf8
"
)
relative_repo
=
data_env
/
repo
if
not
relative_repo
.
is_dir
():
click
.
secho
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment