[Bug 2880] Git ignores (almost) all makefiles in subdirectories ./regress/*
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Jul 3 17:38:54 AEST 2018
https://bugzilla.mindrot.org/show_bug.cgi?id=2880
--- Comment #2 from Torben <Torben.Hansen.2015 at rhul.ac.uk> ---
Hi Damien
I see the same behaviour. However, If the file is not tracked, then I
experience a different behaviour. If you, say, create a new git
repository with the OpenSSH source files and wants to start tracking
all files, then the makefiles will be ignored.
Toy example below
$ pwd
/Users/himsen/tmp
$ mkdir test_root test_root/test_subdir
$ cd test_root
$ git init
$ echo test >> test_subdir/Makefile
$ echo Makefile >> .gitignore
$ git add test_subdir/Makefile
The following paths are ignored by one of your .gitignore files:
test_subdir/Makefile
Use -f if you really want to add them.
Or, in your OpenSSH repository, you can do
$ git rm --cached regress/unittests/Makefile
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: regress/unittests/Makefile
seeing that regress/unittests/Makefile does not appear as untracked.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list