Write out metadata about git repos on disk

Bug #1849742 reported by Haw Loeung on 2019-10-24
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
turnip
Wishlist
Unassigned

Bug Description

Hi,

Would be nice to write out metadata about git repos on disk. This would help us easily map the directories and git processes to which repos they're working on.

For example, '/srv/turnip/data/repos/41964' and '/srv/turnip/data/repos/30355'. While we can eventually try figure it out from commit messages via 'git log', it's still quite a bit of effort.

There's a 'description' file, might be worth adding there?

| Unnamed repository; edit this file 'description' to name the repository.

Haw Loeung (hloeung) on 2019-10-24
Changed in turnip:
importance: Undecided → Wishlist
Paul Collins (pjdc) wrote :

Here's a workaround (possibly not optimal, but explain seemed OK and it returned quickly:

launchpad_prod=# select person.name as owner, product.name as project, gitrepository.name as repo from gitrepository,person,product where gitrepository.id = 30355 and gitrepository.owner = person.id and gitrepository.project = product.id;
      owner | project | repo
-----------------+--------------------+--------------------
 ubuntu-security | ubuntu-cve-tracker | ubuntu-cve-tracker
(1 row)

launchpad_prod=# _

But it would certainly be more convenient if this information were closer to hand.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers