The .gitignore in commit e803eea contains the line:
build/
I think this makes the directories src/test/java/htsjdk/samtools/cram/build/ and src/main/java/htsjdk/samtools/cram/build/ to be erroneously ignored. Shouldn't it be something like build/* instead?
Steps to reproduce:
git clone https://github.com/samtools/htsjdk
cd htsjdk
New file src/main/java/htsjdk/samtools/cram/build/foo.txt is ignored:
touch src/main/java/htsjdk/samtools/cram/build/foo.txt
git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Edit .gitignore and try again, now foo.txt is picked up:
sed -i 's|build/|build/*|' .gitignore
git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/java/htsjdk/samtools/cram/build/foo.txt
no changes added to commit (use "git add" and/or "git commit -a")
The
.gitignore
in commit e803eea contains the line:I think this makes the directories
src/test/java/htsjdk/samtools/cram/build/
andsrc/main/java/htsjdk/samtools/cram/build/
to be erroneously ignored. Shouldn't it be something likebuild/*
instead?Steps to reproduce:
New file
src/main/java/htsjdk/samtools/cram/build/foo.txt
is ignored:Edit
.gitignore
and try again, nowfoo.txt
is picked up:This is with git 2.17.1