From owner-freebsd-ports@freebsd.org Tue Apr 6 17:25:31 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 03D2C5B11BB for ; Tue, 6 Apr 2021 17:25:31 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFDty1SXDz3vM3 for ; Tue, 6 Apr 2021 17:25:29 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id a57fecf6; Tue, 6 Apr 2021 17:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=4OhrqEIW PEkWzQvFRqyMzG1xdWs=; b=vHT3w/sHMhEl9Z/UFXdxtnerWTmN/enVeogLKSA2 5zkQ1PF4Vqx9X6QtFMbh56aeUFhIl3yU4zG6cWaP2LRHHbRZILPCifocB7IlRM2S 62xb2WDFT9yO//14zjdlEMb3B4VlYFcTTruYVBayVaDZOx5Ko5Ypxo/rp57awwaE se7KDYBzkWQ4mpAdH/rfi+yIKfSyAkftr3YoBN/2xgbOk3S5mc03cFqJ2heomsLQ b91QRC1eo1ARYdH0+t/IwPKJ24TCKMqTUC10ob4ksHQt/n8L7nHbNEsZjirlu+Ki svo1W3iIsNT9VLiM5GDz4EzI3QsKCqVGh56Uv8Da6NNOXw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=jJ etUTYSe0OrvVesZcceqGzYkbOHKGUxs0t7TWtix4KnSQDwifwPpAyWTPAMPtqNgn 4tFAJ4M/eLVQyP5gDvWnhxj67z9HaWxGqqZP2bgGuKwg4VJqaCNl6fwZRIhkXrZt TQSZDARDLX3kZPpiXTtWh3A42rqJUxcU0GUnfxfI6+1JIHqA5kvXfYZx7vQmgAlC L8cE/qT3XUzyMMlHacJ3g+QBV2fyw0Qm+yOCRoqAj5YcizywrGB5WnQSOkcjB2lR kgcond6I2/NKo57gy/JkcD7f36MvrJ1tiAv70wz+VZ1rRI6miOqMCylrxhixiG3W CYDxVDhdzj2UfWG6dIAQ== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 1ac42f34 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Tue, 6 Apr 2021 17:25:28 +0000 (UTC) Date: Tue, 6 Apr 2021 19:25:05 +0200 From: Michael Gmelin To: Jose Quinteiro Cc: freebsd-ports@freebsd.org Subject: Re: cannot git clone into /usr/ports when separate filesystem Message-ID: <20210406192505.5925243d@bsd64.grem.de> In-Reply-To: <638e4886-2d38-23df-c29a-923247d7b5fc@quinteiro.org> References: <202104061312.136DCggM012531@nuc.oldach.net> <20210406152853.11f43bdc@bsd64.grem.de> <638e4886-2d38-23df-c29a-923247d7b5fc@quinteiro.org> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FFDty1SXDz3vM3 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=vHT3w/sH; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [0.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grem.de]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_SHORT(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[213.239.217.29:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[213.239.217.29:from]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 17:25:31 -0000 Hi Jose, On Tue, 6 Apr 2021 08:33:27 -0700 Jose Quinteiro wrote: > On 4/6/21 6:28 AM, Michael Gmelin wrote: > > Example: > > > > git config core.excludesFile=$HOME/.gitexcludes > > echo .sujournal >>$HOME/.gitexcludes > > > > In case you don't want to override the excludesFile setting, alter > > one of the config files in the default global location > > $XDG_CONFIG_HOME/git/ignore[0]. > > > The default name for these files is .gitignore. A file with that name > in your home directory will be honored in all git repositories with no > further configuration. This information is not correct. Example: [root@testhost /usr/ports]# cat $HOME/.gitconfig [user] email = freebsd@grem.de name = Michael Gmelin [root@testhost /usr/ports]# cat $HOME/.gitignore t.ignoreme [root@testhost /usr/ports]# touch t.ignoreme [root@testhost /usr/ports]# git status On branch main Your branch is up to date with 'origin/main'. Untracked files: (use "git add ..." to include in what will be committed) t.ignoreme nothing added to commit but untracked files present (use "git add" to track) [root@testhost /usr/ports]# Oh no! > > A file called .gitignore in the current directory will add and/or > override patterns to/in the global .gitignore in your home directory. > See > > https://git-scm.com/docs/gitignore You link to the correct man page. This man page describes the behavior perceived in the example above accurately though (and also repeats parts of what I quoted from git-config(1) about the default locations of these files in in my previous email): "Which file to place a pattern in depends on how the pattern is meant to be used: - Patterns which should be version-controlled and distributed to other repositories via clone (i.e., files that all developers will want to ignore) should go into a .gitignore file. - Patterns which are specific to a particular repository but which do not need to be shared with other related repositories (e.g., auxiliary files that live inside the repository but are specific to one user's workflow) should go into the $GIT_DIR/info/exclude file. - Patterns which a user wants Git to ignore in all situations (e.g., backup or temporary files generated by the user's editor of choice) generally go into a file specified by core.excludesFile in the user's ~/.gitconfig. Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead." -- Quoted from gitignore(5) As you can see, $HOME/.gitignore is not part of it. As .gitignore is meant to be checked into repos, I would also advise against setting `core.excludesFile=$HOME/.gitignore'. Instead I would either set it to a distinct filename (e.g., $HOME/.gitexcludes) or stick with the default location ($HOME/.config/git/ignore) for per-user global excludes. Best, Michael