juhp / fbrnch

Tool to update fedora packages branches
https://hackage.haskell.org/package/fbrnch
GNU General Public License v2.0
23 stars 3 forks source link

Doesn't understand submodule repos #8

Closed QuLogic closed 4 years ago

QuLogic commented 4 years ago

I have a bunch of package repos as submodules of an outer repo. When repo data is merged into the parent repo, this means the .git is a file, not a directory.

fbrnch build does not understand this, and says fbrnch: Not a pkg git dir:.

You can do this absorbing git dirs on a submodule:

$ git init
$ fedpkg clone package-name
$ git submodule add ssh://pkgs.fedoraproject.org/rpms/package-name
$ git submodule absorbgitdirs
$ cat package-name/.git
gitdir: ../.git/modules/package-name
juhp commented 4 years ago

I tested this very lightly, which suggests it seems to work afaict.

juhp commented 4 years ago

fbrnch-0.2-6 is built now in Copr

QuLogic commented 4 years ago

Updated, ran on a new package update, and it seems to be working