-
- Downloads
There was a problem fetching the pipeline summary.
Merge branch 'fix-existing-submodule-dir' into 'master'
Ignore submodules that are defined in .gitmodules but are checked in as directories Check that a blob entry is a not a tree (aka directory). It's possible to check in a submodule in .gitmodules but not the actual directory, leading to a 500 Error in GitLab. See: https://gitlab.com/stanhu/gitlab-git-test/commits/add-submodule-to-existing-dir and click *Files* to see the error. NOTE: Don't merge this gitlab-git-test change into master; put it in another branch called `fix-existing-submodule-dir`. I could not get the gitlab_git tests to pass with master because the git checkout to the feature branch caused libgit2 to complained about a conflict, even though `git checkout -b foo_branch origin/feature` works fine. Apparently git uses no code in libgit2, which might explain the discrepancy. I suspect libgit2 sees the mismatched submodule directory as a conflict. Closes: gitlab-org/gitlab-ce#1439 (duplicate here: https://github.com/gitlabhq/gitlabhq/issues/9140) See merge request !26
Showing
- CHANGELOG 3 additions, 0 deletionsCHANGELOG
- lib/gitlab_git/repository.rb 5 additions, 2 deletionslib/gitlab_git/repository.rb
- spec/branch_spec.rb 1 addition, 1 deletionspec/branch_spec.rb
- spec/commit_spec.rb 1 addition, 1 deletionspec/commit_spec.rb
- spec/repository_spec.rb 6 additions, 1 deletionspec/repository_spec.rb
- spec/support/repo.rb 1 addition, 1 deletionspec/support/repo.rb
Please register or sign in to comment