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--