Bug #17132
closedvcs.rb doesn't detect git submodules as vcs
Description
Mostly a followup of #12239 as this was already about a similar use case.
When I run make-snapshot with a srcdir as target thats inside a submodule it doesn't detect it as vcs.
My command line and the output:
~/dev/sailfish/jolla/pkgs/mer_core/ruby/ruby/:./tool/make-snapshot -srcdir=../$PWD snapshot Traceback (most recent call last): 1: from ./tool/make-snapshot:584:in
'
/home/bidar/dev/sailfish/jolla/pkgs/mer_core/ruby/ruby/tool/lib/vcs.rb:152:in detect': does not seem to be under a vcs: ..//home/bidar/dev/sailfish/jolla/pkgs/mer_core/ruby/ruby (VCS::NotFoundError)
Updated by nobu (Nobuyoshi Nakada) about 3 years ago
- Status changed from Open to Feedback
As I have never used git submodule, I can't get what "target thats inside a submodule" means.
Could you explain how you set up it?
.git
file/directory doesn't exist in submodule?
Updated by Thaodan (Björn Bidar) about 3 years ago
As I have never used git submodule, I can't get what "target thats inside a submodule" means.
Could you explain how you set up it?
It means that the target eg. the srcdir is in a git submodule.
It set it up like this:
git init
git submodule add https://github.com/ruby/ruby.git
.git file/directory doesn't exist in submodule?
it is but .git contains only the dir of the real git directory instead the main module.
The reason for all this is to keep the upstream source while having the downstream rpm directory in the same tree so that when building a tarball can be generated that is used to build the package in ci system.