Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.build
Commits
5656b48c
Commit
5656b48c
authored
Feb 01, 2019
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function for revmoving submodule
parent
5983e42e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
slapos/recipe/gitclone.py
slapos/recipe/gitclone.py
+17
-1
No files found.
slapos/recipe/gitclone.py
View file @
5656b48c
...
...
@@ -173,7 +173,23 @@ class Recipe(object):
try
:
check_call
(
command
,
cwd
=
self
.
location
)
except
CalledProcessError
,
e
:
print
"Git Reset stdout output:
\
n
"
,
e
.
output
print
"Git Reset stdout output:
\
n
"
,
e
.
returncode
raise
def
gitRemoveSubmodule
(
self
,
submodule_path
=
None
):
"""
Cleanly remove submodule
"""
if
submodule_path
:
# Remove the submodule entry from .git/config
check_call
([
'git'
,
'submodule'
,
'deinit'
,
'-f'
,
submodule_path
])
# Remove the submodule directory from the parent's .git/modules directory
check_call
([
'rm'
,
'-rf'
,
'.git/modules/%s'
%
submodule_path
])
# Remove the entry in .gitmodules and remove the submodule directory
# located at submodule path
check_call
([
'git'
,
'rm'
,
'-f'
,
submodule_path
])
def
install
(
self
):
"""
...
...
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