Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !337

Closed
Created Jun 06, 2018 by Kirill Smelkov@kirrOwner
  • Report abuse
Report abuse

gowork-snapshot: Fix it for submodules

  • Overview 9
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: y/gowork-submodule
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7