Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CADET-RDM
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IBG-1
ModSim
CADET
CADET-RDM
Commits
cfa0efb4
Commit
cfa0efb4
authored
1 year ago
by
Ronald Jäpel
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in initialize repo is repo folder exists but is empty
parent
678d969d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cadetrdm/initialize_repo.py
+1
-1
1 addition, 1 deletion
cadetrdm/initialize_repo.py
with
1 addition
and
1 deletion
cadetrdm/initialize_repo.py
+
1
−
1
View file @
cfa0efb4
...
...
@@ -116,7 +116,7 @@ def initialize_git_repo(path_to_repo: str, output_repo_name: (str | bool) = "out
if
path_to_repo
!=
"
.
"
:
if
os
.
path
.
exists
(
path_to_repo
)
and
len
(
os
.
listdir
(
path_to_repo
))
>
0
:
raise
ValueError
(
"
Path to repository already exists and is not an empty directory.
"
)
os
.
makedirs
(
path_to_repo
)
os
.
makedirs
(
path_to_repo
,
exist_ok
=
True
)
os
.
chdir
(
path_to_repo
)
os
.
system
(
f
"
git init
"
)
...
...
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