Akzidenzgrotesk
Akzidenzgrotesk

Reputation: 554

Git Remote: Show a Custom Message, at Every Clone/Fetch?

Is it possible to configure a git remote repo in such a way that everytime someone fetches it or pushes something, a custom message is displayed?

My intention is to give information about the branch structure. So in a way a light version of a git request-pull.

#git fetch
Welcome to projectx... commit your experimental changes @beta,
the more or less stable features @dev.
The stable and the testing branch will be maintained by "Mastermind"

Thats what I imagine. Is this possible? I've got full rights to the remote repo.

Upvotes: 12

Views: 1154

Answers (1)

max630
max630

Reputation: 9248

The closest I can find is the uploadpack.packObjectsHook config option. There you can specify a script which should print the message to the standard error and call git-upload-pack with same arguments.

I did not try if it works.

Upvotes: 1

Related Questions