Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:12:15+00:00 2026-06-06T13:12:15+00:00

I need to run a script that will generate the projects.list file when a

  • 0

I need to run a script that will generate the projects.list file when a new repository is created by one the members of my team.

We develop firmware that branch off from a ‘master’, but the branches will never be merged back into master. Since there will never be a merge back I decided to make repositories for every distinct version of firmware. I have developed a bash script that will create the projects.list file for me.

find repositories/ -iname "*.git" -type d | grep --invert-match "gitolite-admin" | sed 's/repositories\///g' > /srv/git/projects.list

Now I am having trouble creating the hook to call that script.

I have tried getting gitolite to generate the file for me but have had no luck with it. Any help is appreciated. Thanks!

Answer

In config/gitolite.conf I made the repo def look like this:

repo    Firmware/[a-zA-Z0-9].*/[a-zA-Z0-9].*
        C       =   @all
        RW+     =   @all
        R = gitweb
        config gitweb.owner = Repo Manager
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:12:16+00:00Added an answer on June 6, 2026 at 1:12 pm

    As mentioned in Gitolite “interfacing with external tools”,

    The list of gitweb-readable repos is written to a file whose name is given by the rc file variable GITWEB_PROJECTS_LIST.
    The default value of this variable, if it is not specified or empty, is $HOME/projects.list.

    So unless you make your repo readable by the special user gitweb, Gitolite won’t generate/complete the $HOME/projects.list for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run a script that will rewrite the folder path of a
I have a script that will generate a CSV file. The purpose of the
I need to run a script every night that connects to a Web Service
I have a bash script that I need to write my password to run
I need to run a ps1 script on a remote computer. The script will
I am creating a script that will be run in a MS SQL server.
I'm trying to create a script that will upload a file to a website.
I'm trying to develop a script which will, in part, generate a list of
I have a few sql scripts that I need to run via SQL*Plus. These
I need to run a script and have access to the default stdin (terminal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.