[Debian-handbook-translators] Git hooks installed to prevent mistakes

Raphael Hertzog hertzog at debian.org
Wed Jun 27 07:21:15 UTC 2012


Hello,

FYI I just configured a Git hook that shall prevent most of the mistakes
that some of you have been doing:

* translators can no longer push to master
* pushing (trivial) merge commits is now forbidden

If you have troubles pushing your work due to those rules, just ask here
for help.

Here's an example of the kind of errors that you can have:

$ git push
Counting objects: 2, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 461 bytes, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: *** You're not allowed to modify the master branch. Translations happen on squeeze/master for now.
remote: error: hook declined to update refs/heads/master
To ssh://git.debian.org/git/debian-handbook/debian-handbook.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://git.debian.org/git/debian-handbook/debian-handbook.git'


Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/



More information about the Debian-handbook-translators mailing list