Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
moodle_rebase10.1.2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Blinov
moodle_rebase10.1.2
Commits
48cd13fe
Commit
48cd13fe
authored
Aug 28, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git init, specify description
parent
1c95057c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
slapos/recipe/gitinit.py
slapos/recipe/gitinit.py
+5
-1
No files found.
slapos/recipe/gitinit.py
View file @
48cd13fe
...
@@ -36,10 +36,14 @@ class Recipe(GenericBaseRecipe):
...
@@ -36,10 +36,14 @@ class Recipe(GenericBaseRecipe):
def
install
(
self
):
def
install
(
self
):
repolist
=
json
.
loads
(
self
.
options
[
'repos'
])
repolist
=
json
.
loads
(
self
.
options
[
'repos'
])
for
repo
in
repolist
:
for
repo
,
desc
in
repolist
.
iteritems
()
:
absolute_path
=
os
.
path
.
join
(
self
.
options
[
'base-directory'
],
'%s.git'
%
repo
)
absolute_path
=
os
.
path
.
join
(
self
.
options
[
'base-directory'
],
'%s.git'
%
repo
)
if
not
os
.
path
.
exists
(
absolute_path
):
if
not
os
.
path
.
exists
(
absolute_path
):
check_call
([
self
.
options
[
'git-binary'
],
'init'
,
check_call
([
self
.
options
[
'git-binary'
],
'init'
,
'--bare'
,
absolute_path
])
'--bare'
,
absolute_path
])
# XXX: Hardcoded path
description_filename
=
os
.
path
.
join
(
absolute_path
,
'description'
)
with
open
(
description_filename
,
'w'
)
as
description_file
:
description_file
.
write
(
desc
)
return
[]
return
[]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment