Le 30/05/12 08:55, Raimond Spekking a écrit :
> (the last sentence means: "The system cannot find the file
> '.git\\hooks\\commit-msg'")
> 
> Any ideas how to fix this?

Set up your hook on that repository?

http://www.mediawiki.org/wiki/Git/Workflow has the answer:

---------------------------------------------------------------------
First, you need to download a pre-commit hook script and place it in the
right directory in your cloned copy of the repository. The script is
available from https://gerrit.wikimedia.org/r/tools/hooks/commit-msg and
must be placed in the repository sub directory .git/hooks/

1) With a browser:
Download the script from the repo using "Save As ..." then browse to
wikimedia-git-repos/examples/.git/hooks/. Voilà!

2) With wget:
Change to the repository directory (for example, cd
wikimedia-git-repos/examples/
wget  -P .git/hooks https://gerrit.wikimedia.org/r/tools/hooks/commit-msg

3) With curl:
curl https://gerrit.wikimedia.org/r/tools/hooks/commit-msg >
.git/hooks/commit-msg

You also need to ensure the hook is executable. In Linux you do this with:
  chmod u+x .git/hooks/commit-msg

When ever you commit a change locally, the hook script will generate a
unique Change-Id for you.
---------------------------------------------------------------------




-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to