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
92d180bc
Commit
92d180bc
authored
Sep 02, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitclone: if directory is no longer present, install, never update.
parent
d27df419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
slapos/recipe/gitclone.py
slapos/recipe/gitclone.py
+4
-0
No files found.
slapos/recipe/gitclone.py
View file @
92d180bc
...
@@ -145,6 +145,10 @@ class Recipe(object):
...
@@ -145,6 +145,10 @@ class Recipe(object):
raise
UserError
(
'revision and branch (other than master) parameters '
raise
UserError
(
'revision and branch (other than master) parameters '
'are set but are incompatible. Please specify only one of them.'
)
'are set but are incompatible. Please specify only one of them.'
)
# Check existence of directory
if
not
os
.
path
.
exists
(
self
.
location
):
self
.
update
=
self
.
install
def
gitReset
(
self
,
revision
=
None
):
def
gitReset
(
self
,
revision
=
None
):
"""Operates git reset on the repository."""
"""Operates git reset on the repository."""
command
=
[
self
.
git_command
,
'reset'
,
'--hard'
]
command
=
[
self
.
git_command
,
'reset'
,
'--hard'
]
...
...
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