Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !337

gowork-snapshot: Fix it for submodules

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Kirill Smelkov requested to merge kirr/slapos:y/gowork-submodule into master Jun 06, 2018
  • Overview 9
  • Commits 1
  • Pipelines 0
  • Changes 1

In the presence of Git submodules, the .git of a submodule is not a directory but a regular file with content like

gitdir: ../../.git/modules/vendor/libgit2

As -C path instructs git to cd into path this fails for submodule case with error like:

github.com/libgit2/git2go/vendor/libgit2        fatal: cannot change to './github.com/libgit2/git2go/vendor/libgit2/.git': Это не каталог

Fix it by changing -C to --git-dir which instructs Git to consider provided path as only location for git database, not to cd into it.

/cc @alain.takoudjou, @jerome

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