Dne 01.05.2024 (sre) ob 23:09 +0200 je Samo Pogačnik napisal(a):
> Hi Daniel,
> 
> After installing our current 'git-subrepo' deb i noticed, that bash-completion
> integration with git does not work. The git-subrepo's own bash completion
> works,
> after you've already typed the first two words 'git subrepo TAB TAB', but the
> initial recognition of the 'subrepo' sub-command to the 'git' command does not
> work.
> 
> It turns out, that current git (bash-completion) in sid does not recognize our
> 'git-subrepo' executables installed by default into the git-core directory.
> The
> git bash-completion support finds git sub-commands using the 'git --list-
> cmds=comma-separated-list-of-cmdgroups', which executes a specific search for
> each group. Unfortunately none of the searches brings up the 'subrepo' sub-
> command. I do not know what is needed for the 'git-subrepo' inside 'git-core'
> to
> be recognized there. However i noticed, that the --list-cmds group 'other'
> scans
> the /usr/bin/ directory, where our old friend 'git-debrebase' and friends
> already reside and are being successfully recognized by git. Thus i prepared a
> change (in my salsa repo: in 
> https://salsa.debian.org/spog/git-subrepo/-/tree/debian/sid) to change the
> target installation directory, which seems to work.
> 
> Could you please take a look, how that holds water in debian.
> 
> thanks, Samo

Unfortunately, lintian is not happy with my solution above (does not allow
subdirs in /usr/bin and however git-subrepo script searches its helper functions
in git-subrepo.d subdir in the location of main git-subrepo script).

I managed to prepare another solution, without changing upstream sources in a
way to move 'git-subrepo' executable scripts into /usr/libexec/git-subrepo and
by adding a symlink to main git-subrepo executable into /usr/bin. That way bash-
completion integration works as in the initial solution and lintian is also
happy.

I pushed (forced) the new solution over the previous one.

regards, Samo 

Reply via email to