Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Gitolite Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Gitolite Essentials

Gitolite Essentials

By : Sitaram Chamarty
4 (2)
close
close
Gitolite Essentials

Gitolite Essentials

4 (2)
By: Sitaram Chamarty

Overview of this book

Table of Contents (19 chapters)
close
close
Gitolite Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1
Index

Writing your own non-core code


It's reasonably easy to write your own code to add features that are specific to your site. For example, suppose we want an e-mail to be sent to the administrator every time a developer creates a wild repository. We will assume that the standard Unix utilities exist and are available. In particular, we will assume the Unix mail command is available. This command takes the message from standard input, and the subject and recipient data from command-line arguments, and sends the e-mail, thus suits our purposes very well.

Since this is an action that needs to run when a repository is created, it needs to be added to the POST_CREATE trigger list. According to the Gitolite documentation, when a wild repository is created, each program in the POST_CREATE trigger list is called with the second argument being the name of the repository that was just created, while the third argument is the name of the user who created it. (If this is empty, this is not a wild repository...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Gitolite Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon