Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
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
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.recipe.build
  • Merge requests
  • !8

You need to sign in or sign up before continuing.
Closed
Created May 31, 2019 by Alain Takoudjou@alain.takoudjouDeveloper
  • Report abuse
Report abuse

gitclone: allow to create symlink in repository after clone or pull

  • Overview 6
  • Commits 1
  • Changes 1

Add option to create symlink in repository folder after clone. This can be useful to link git submodules files/folder in their good location.

For example:

[repository-test]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/erp5.git
link-list = 
  doc-bt5/erp5_slapos_tutorial bt5/erp5_slapos_tutorial
  doc-bt5/erp5_slapos_tutorial_data bt5/erp5_slapos_tutorial_data

After the repository is cloned with submodule in doc-bt5, a symlink will be created to repository_location/doc-bt5/erp5_slapos_tutorial into repository_location/bt5/erp5_slapos_tutorial in order to place doc-bt5 business templates into bt5 folder.

After the repository part is installed,

$ cd $repository
$ git status                                                                                     
On branch master                                                                     
Your branch is up to date with 'origin/master'.                                         
                                                                                                 
Untracked files:                                                                                 
  (use "git add <file>..." to include in what will be committed)                                 
                                                                                                 
        bt5/erp5_slapos_tutorial
        bt5/erp5_slapos_tutorial_data
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: alain-link
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7