From nobody Mon Jul 5 14:52:19 2021 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7C51111D4E87 for ; Mon, 5 Jul 2021 14:52:24 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GJTDm31Jtz3vsj; Mon, 5 Jul 2021 14:52:24 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from mail.j.mat.cc (owncloud.cube.mat.cc [79.143.240.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 37EF22CA93; Mon, 5 Jul 2021 14:52:24 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (aching.in.mat.cc [79.143.241.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mat@mat.cc) by mail.j.mat.cc (Postfix) with ESMTPSA id 3DBB7942D80; Mon, 5 Jul 2021 14:52:21 +0000 (UTC) Date: Mon, 5 Jul 2021 16:52:19 +0200 From: Mathieu Arnold To: Warner Losh Cc: Nuno Teixeira , freebsd-git Subject: Re: git command to run .hooks/prepare-commit-msg Message-ID: <20210705145219.xouxdlzlwvoijbo5@aching.in.mat.cc> References: List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7a3n7wdiahz2tb4z" Content-Disposition: inline In-Reply-To: X-ThisMailContainsUnwantedMimeParts: N --7a3n7wdiahz2tb4z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 03, 2021 at 11:07:59AM -0600, Warner Losh wrote: > On Sat, Jul 3, 2021 at 11:00 AM Nuno Teixeira wrote: >=20 > > ---------- Forwarded message --------- > > De: Nuno Teixeira > > Date: s=E1bado, 3/07/2021 =E0(s) 17:57 > > Subject: git command to run .hooks/prepare-commit-msg > > To: FreeBSD Mailing List > > > > > > Hello, > > > > I can't find git command so I can run .hooks/prepare-commit-msg when I > > commit. > > >=20 > Please see > https://docs.freebsd.org/en/articles/committers-guide/#git-mini-primer-ge= tting-started > at the end of the 'Dialy Use' section for the details. It would seem you > have the path > a bit confused. It's not .hooks, but rather .git/hooks. It is .hooks. --=20 Mathieu Arnold --7a3n7wdiahz2tb4z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAmDjHJ5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgLL5BAAjdwQ4V+P0dJezaPEkCvUNhQ8iMFOEwnhcB2lld3W1bWyNlGPVJ/23Twt xuTiEvIeqiOxc9bJIFqMtqG/oKDd/0Tbj0ec2nNCLkOTHemzn1DLkikrylIvOwAn WhQej91PxxHHgbwyfIGhehqn+v5qWFbPyi+xs0O8yzzZT5Q2pLd0UH4oUdRxSYWT YTv+FkmrPj3/0g7QunYNPlPFSzr/H3bmvy1Gx7OL6yYsTPuh0XCNMEzpUOU9ZXWC nK9U12VrkSTenbM3xe7VzUXi740JByRuxW0MoaPzobukz0Cewaxs2Zus+j4GpRgd lEiZqA6EheBSnzHQ7O9snv4tHifBimA0d2cqSIivOJZq3tjLInZLTMl+Sl+Hhkni IAt292Km0xwdi4oe2XyWp8skB/amfCj6c5Aa4EyqvJHMhDbaTKMwY+LMd6M3c3Wd XDbrGaZH8nzqKtRGXSQlEkbgKApSw+sFfG9tiB1cEJexybA3uK3g15z5uFcYQuJu QYrfAzI8lrHx69zhs9LKx66/OrO1QuTca2+Zfh5fOFFf2IkqAPZMsr5cDaeQ1aK7 7D+3mHOUVqlzs1BTR8b/cwRI8/P0/Wm1zJZoY9D7InTBpufnSOs3vg+7lxVg4ugi xAucYSda16lhCFISTnAXtz43un83CrHr3CmQohUG468yNPpwNZI= =+XM8 -----END PGP SIGNATURE----- --7a3n7wdiahz2tb4z-- From nobody Mon Jul 5 15:41:55 2021 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F18FC11DF05D for ; Mon, 5 Jul 2021 15:42:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GJVL7609Bz4bjK for ; Mon, 5 Jul 2021 15:42:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82f.google.com with SMTP id d1so2783258qto.4 for ; Mon, 05 Jul 2021 08:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q/bWLUfO3eUXBhYOK69LdO5h9wMaODbVbF3vWi6JmMo=; b=ys/vE13K0T2z31azszEPoY8H7OMk55DqbvZMO5G4OJyBgij9skkqAQzf2BnJv1srhF nCO1EGLUpuJ4iOWirMRDSP4iMZBcyhVZPG7aOUGGPCCqIc3LM4pQ2o4DM+ELAk+GSwkU 4C/Fvwx2uqs3F7CmYfb2xSickxEr9jEAqlDbSZt6qOIMH6QLXhXyjjmjjlDI3JBgNQ8k ETGguU0a4J8L80/dE7pC+g4gDz5B7FRnmCvA3UX4gQmEkngWpF/VpDPUoNupIpJkEWEJ h5P0SAA0V1iRvl1hH3wRUUyjAn4kS4+k/cNcBWu0MgsJee6q6CvjnROLJMRzAqDPg8eB +3pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q/bWLUfO3eUXBhYOK69LdO5h9wMaODbVbF3vWi6JmMo=; b=j9LT6Kz8q4QvCrHrmu4OYYpzCakp+VrCRGCPhuSWdxXFf0i8mAKWZJM2VKBUFKmnLU Z3jAz8SlPWIqUWO4NfLBus0Iv7cuO8c0BKut2AfeZb9XGc2wUvDF8ib/ul1VD8CSD3Tu IhJvPtYeeELYh3TbhmFtQx6cWVYT5VZtpJnHvO9eC9XE08QNWcWZUuPPy8d2qjbzzB0e UhdE9j9bvn8gTTC0zxIXExuDdJkQ9TtkAG3mEurd+835I963/avlLiyROGFcol/E13Kk UpIYemYvmvlMEb4QUk3Q0V9KatB9j2B9AKkPkZwdMvn8JdAYTNeCDBjmIR1mJcVEvexm 6SNQ== X-Gm-Message-State: AOAM531QKMVdWkGzU+CFfpB2JOOoRyjHyk0dwSYIfZ+P0LJ0rYaBfQzu zdDH5L5181KCs3N43J0IltNDWoT+9iGYHKCtwgz6jw== X-Google-Smtp-Source: ABdhPJxpZxbCefqGKj5S3EK4abTS/F9wzmmQ79KkLGDanhK77ibwyeEgkfKaIVt68Cg6E5xKlJxwJo5VB3sjir2JeYY= X-Received: by 2002:ac8:43c2:: with SMTP id w2mr9218328qtn.235.1625499726590; Mon, 05 Jul 2021 08:42:06 -0700 (PDT) List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 References: <20210705145219.xouxdlzlwvoijbo5@aching.in.mat.cc> In-Reply-To: <20210705145219.xouxdlzlwvoijbo5@aching.in.mat.cc> From: Warner Losh Date: Mon, 5 Jul 2021 09:41:55 -0600 Message-ID: Subject: Re: git command to run .hooks/prepare-commit-msg To: Mathieu Arnold Cc: Nuno Teixeira , freebsd-git Content-Type: multipart/alternative; boundary="000000000000c948b605c66225ef" X-Rspamd-Queue-Id: 4GJVL7609Bz4bjK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000c948b605c66225ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 5, 2021 at 8:52 AM Mathieu Arnold wrote: > On Sat, Jul 03, 2021 at 11:07:59AM -0600, Warner Losh wrote: > > On Sat, Jul 3, 2021 at 11:00 AM Nuno Teixeira > wrote: > > > > > ---------- Forwarded message --------- > > > De: Nuno Teixeira > > > Date: s=C3=A1bado, 3/07/2021 =C3=A0(s) 17:57 > > > Subject: git command to run .hooks/prepare-commit-msg > > > To: FreeBSD Mailing List > > > > > > > > > Hello, > > > > > > I can't find git command so I can run .hooks/prepare-commit-msg when = I > > > commit. > > > > > > > Please see > > > https://docs.freebsd.org/en/articles/committers-guide/#git-mini-primer-ge= tting-started > > at the end of the 'Dialy Use' section for the details. It would seem yo= u > > have the path > > a bit confused. It's not .hooks, but rather .git/hooks. > > It is .hooks. > The default for git is .git/hooks. However, we recommend in the instructions for the ports tree to set it with `git config --add core.hooksPath .hooks` and have the ports hooks there. We don't do that for the src tree. In the src tree we have a lot of files in .git/hooks that are samples. Also, that command is just for the current tree, so it needs to be repeated for new trees you checkout. Warner --000000000000c948b605c66225ef--