juhp / fbrnch

Tool to update fedora packages branches

Home Page:https://hackage.haskell.org/package/fbrnch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't understand submodule repos

QuLogic opened this issue · comments

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

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

fbrnch-0.2-6 is built now in Copr

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