Thread
Commits
-
Avoid use of wildcard in pg_waldump's .gitignore.
- ea9c0e1c0deb 10.11 landed
- d82f3909da11 13.0 landed
- 4fd51980ed5a 11.6 landed
- 4f119e156e65 12.1 landed
-
BUG #16042: incorrect .gitignore file
The Post Office <noreply@postgresql.org> — 2019-10-05T11:06:11Z
The following bug has been logged on the website: Bug reference: 16042 Logged by: Denis Stuchalin Email address: stuchalin.d@gmail.com PostgreSQL version: 11.5 Operating system: Linux Description: The sourses repository https://www.postgresql.org/ftp/source/v11.5/. The source codes contain the file src/bin/pg_waldump/.gitignore This file contains the line /*desc.c This line does not give the correct commit file rmgrdesc.c from this directory to the "my" git repository. This problem does not allow to build a postgresql cloned from "my" git repository, since git does not have the file need to build successfully. Workflow: 1. Download souses from https://www.postgresql.org/ftp/source/v11.5/ 2. Push sourses into GIT repo 3. Clone souses from GIT into other place. 4. Build from cloned sourses FAILED.
-
Re: BUG #16042: incorrect .gitignore file
Tom Lane <tgl@sss.pgh.pa.us> — 2019-10-05T16:28:01Z
PG Bug reporting form <noreply@postgresql.org> writes: > The source codes contain the file src/bin/pg_waldump/.gitignore > This file contains the line /*desc.c > This line does not give the correct commit file rmgrdesc.c from this > directory to the "my" git repository. Yeah, somebody was being overly lazy there. I cleaned it up. regards, tom lane
-
Re: BUG #16042: incorrect .gitignore file
Andres Freund <andres@anarazel.de> — 2019-10-05T16:34:02Z
Hi, On 2019-10-05 12:28:01 -0400, Tom Lane wrote: > PG Bug reporting form <noreply@postgresql.org> writes: > > The source codes contain the file src/bin/pg_waldump/.gitignore > > This file contains the line /*desc.c > > This line does not give the correct commit file rmgrdesc.c from this > > directory to the "my" git repository. > > Yeah, somebody was being overly lazy there. I cleaned it up. Seems like adding a !rmgrdesc.c pattern would have a been easier? • An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is excluded. Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined. Put a backslash ("\") in front of the first "!" for patterns that begin with a literal "!", for example, "\!important!.txt". Greetings, Andres Freund -
Re: BUG #16042: incorrect .gitignore file
Tom Lane <tgl@sss.pgh.pa.us> — 2019-10-05T16:48:04Z
Andres Freund <andres@anarazel.de> writes: > On 2019-10-05 12:28:01 -0400, Tom Lane wrote: >> Yeah, somebody was being overly lazy there. I cleaned it up. > Seems like adding a !rmgrdesc.c pattern would have a been easier? I'm not terribly trusting of this sort of wildcard usage in .gitignore to begin with. It's way too easy to ignore something you shouldn't, as indeed this bug did. regards, tom lane