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
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
Xavier Thompson
slapos.recipe.build
Commits
48397787
Commit
48397787
authored
Oct 08, 2014
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitclone: refuse deleting a working copy with local commits or changes (test).
parent
3053f0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
7 deletions
+70
-7
README.rst
README.rst
+70
-7
No files found.
README.rst
View file @
48397787
...
...
@@ -205,6 +205,22 @@ and branch parameter is ignored::
>>> print system('git branch')
* master
Setup a "develop" repository
----------------------------
If you need to setup a repository that will be manually alterated over time for
development purposes, you need to make sure buildout will NOT alter it and NOT
erase your local modifications by specifying the "develop" flag::
[buildout]
parts = git-clone
[git-clone]
recipe = slapos.recipe.build:gitclone
repository = https://example.net/example.git/
develop = true
Specific git binary
-------------------
...
...
@@ -212,13 +228,61 @@ The default git command is `git`, if for a any reason you don't
have git in your path, you can specify git binary path with `git-command`
option::
[buildout]
parts = git-clone
>>> cd(sample_buildout)
>>> write(sample_buildout, 'buildout.cfg',
... """
... [buildout]
... parts = git-clone
...
... [git-clone]
... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git
... develop = true
... """)
[git-clone]
recipe = slapos.recipe.build:gitclone
repository = http://example.net/example.git/
git-executable = /usr/local/git/bin/git
>>> print system(buildout)
Uninstalling git-clone.
Running uninstall recipe.
Installing git-clone.
Cloning into '/sample-buildout/parts/git-clone'...
Buildout will then keep local modifications, instead of resetting the
repository::
>>> cd(sample_buildout, 'parts', 'git-clone')
>>> print system('echo foo > setup.py')
>>> cd(sample_buildout)
>>> print system(buildout)
Updating git-clone.
Fetching origin
>>> cd(sample_buildout, 'parts', 'git-clone')
>>> print system('cat setup.py')
foo
In case of uninstall, buildout will keep the repository directory::
>>> cd(sample_buildout)
>>> write(sample_buildout, 'buildout.cfg',
... """
... [buildout]
... parts = git-clone
...
... [git-clone]
... recipe = slapos.recipe.build:gitclone
... repository = http://git.erp5.org/repos/slapos.recipe.build.git
... develop = true
... # Triggers uninstall/install because of section signature change
... foo = bar
... """)
>>> print system(buildout)
Uninstalling git-clone.
Running uninstall recipe.
You have uncommited changes in /sample-buildout/parts/git-clone. This folder will be left as is.
Installing git-clone.
destination directory already exists.
Ignore SSL certificate
----------------------
...
...
@@ -236,7 +300,6 @@ boolean option::
repository = https://example.net/example.git/
ignore-ssl-certificate = true
Full example
------------
...
...
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