Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.recipe.build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • slapos.recipe.build
  • Merge requests
  • !1

gitclone: We don't have to fetch, if revision is already present in local git repository

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Kirill Smelkov requested to merge kirr/slapos.recipe.build:y/gitclone-rev-nofetch into master Jun 23, 2015
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes

Because revision specifies worktree state exactly, and if we have it already, we don't need to fetch anything -- it is possible to checkout/reset to the revision right away.

The reason for this patch is that fetching is sometimes not very fast or even slow. For example today, gitlab.com had some outage and I've developed this patch while waiting for it to come back.

/cc @jerome, @kazuhiko

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: y/gitclone-rev-nofetch
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7