Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-environment
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform
Development
swh-environment
Commits
75f1d831
Commit
75f1d831
authored
1 week ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
init-py-repo: Create directory if it does not exist, and don't overwrite it if it doesn't
parent
12a739d7
No related branches found
No related tags found
1 merge request
!324
init-py-repo: Create directory if it does not exist, and don't overwrite it if it doesn't
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/init-py-repo
+10
-6
10 additions, 6 deletions
bin/init-py-repo
with
10 additions
and
6 deletions
bin/init-py-repo
+
10
−
6
View file @
75f1d831
...
...
@@ -15,15 +15,19 @@ while (( "$#" )); do
esac
shift
done
if
[
-z
"
$repo_dir
"
-o
!
-d
"
$repo_dir
"
]
;
then
if
[
-z
"
$repo_dir
"
]
;
then
usage
fi
copier copy
$TEMPLATE_REPO
$repo_dir
cd
"
$repo_dir
"
git init
.
git add
.
git commit
-m
"import template from
$TEMPLATE_REPO
(init-py-repo)"
if
[
!
-d
"
$repo_dir
"
]
;
then
copier copy
$TEMPLATE_REPO
$repo_dir
cd
"
$repo_dir
"
git init
.
git add
.
git commit
-m
"import template from
$TEMPLATE_REPO
(init-py-repo)"
else
cd
"
$repo_dir
"
fi
if
[
"
$create_gitlab
"
=
"yes"
]
;
then
echo
"Create the project on gitlab"
...
...
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