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.saved
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.recipe.build.saved
Commits
e222b732
Commit
e222b732
authored
Oct 01, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for git update recipe
parent
a15641a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
README.rst
README.rst
+23
-0
No files found.
README.rst
View file @
e222b732
...
@@ -295,6 +295,13 @@ Let's take a look at the buildout parts directory now::
...
@@ -295,6 +295,13 @@ Let's take a look at the buildout parts directory now::
d buildout
d buildout
d git-clone
d git-clone
When updating, it will do a "git fetch; git reset @{upstream}"::
>>> print system(buildout)
Updating git-clone.
Fetching origin
HEAD is now at ...
Specific branch
Specific branch
---------------
---------------
...
@@ -331,6 +338,14 @@ And let's see that current branch is "build"::
...
@@ -331,6 +338,14 @@ And let's see that current branch is "build"::
>>> subprocess.check_output(['git', 'branch'])
>>> subprocess.check_output(['git', 'branch'])
'* build\n'
'* build\n'
When updating, it will do a "git fetch; git reset build"::
>>> cd(sample_buildout)
>>> print system(buildout)
Updating git-clone.
Fetching origin
HEAD is now at ...
Specific revision
Specific revision
-----------------
-----------------
...
@@ -369,6 +384,14 @@ And let's see that current branch is "gitclone"::
...
@@ -369,6 +384,14 @@ And let's see that current branch is "gitclone"::
>>> subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])
>>> subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])
'2566127\n'
'2566127\n'
When updating, it will do a "git fetch; git reset revision"::
>>> cd(sample_buildout)
>>> print system(buildout)
Updating git-clone.
Fetching origin
HEAD is now at ...
Specific git binary
Specific git binary
-------------------
-------------------
...
...
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