This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
🐛 Fixed not ignoring nested git repositories #105
Open
segiddins
wants to merge
2
commits into
atom:master
Choose a base branch
from
segiddins:seg-nested-git
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It looks like you broke a spec with this change - could you please fix it and add a spec that tests this change? Thanks. |
I don't really understand what the spec I broke is testing. I'd be happy to add a new spec for this change, but I've really only poked around and am not too familiar with how to test this change. |
I'd appreciate some help in understanding what the failing test is actually trying to test so I can fix it and get this PR merged. |
Test code: describe "when core.excludeVcsIgnoredPaths is set to true", ->
beforeEach ->
atom.config.set("core.excludeVcsIgnoredPaths", true)
describe "when the .gitignore matches parts of the path to the root folder", ->
beforeEach ->
ignoreFile = path.join(projectPath, '.gitignore')
fs.writeFileSync(ignoreFile, path.basename(projectPath))
it "only applies the .gitignore patterns to relative paths within the root folder", ->
dispatchCommand('toggle-file-finder')
projectView.setMaxItems(Infinity)
waitForPathsToDisplay(projectView)
runs ->
expect(projectView.list.find("li:contains(file.txt)")).toExist() What this is doing is:
|
This is now passing! |
(See also atom/git-utils#45) |
What can I do to help get this 🚢? |
Adding an additional spec that tests what this fixes would help to get this shipped. |
I just tried to come up with a spec for this, but I'm struggling, sorry. |
segiddins
force-pushed
the
seg-nested-git
branch
from
September 24, 2015 16:22
f47846c
to
88f87fa
Compare
segiddins
force-pushed
the
seg-nested-git
branch
from
October 1, 2015 22:19
88f87fa
to
20cac2b
Compare
For example, suppose you have a repo, `Rainforest`, whose .gitignore is simply `*`. Inside Rainforest is another git repo, `Repo`. If you open `Repo` as your project directory, it will now be auto-completed, as the root is no longer considered ignored.
segiddins
force-pushed
the
seg-nested-git
branch
from
October 30, 2015 22:34
20cac2b
to
088c0e7
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For example, suppose you have a repo,
Rainforest
,whose .gitignore is simply
*
.Inside Rainforest is another git repo,
Repo
.If you open
Repo
as your project directory,it will now be auto-completed, as the root
is no longer considered ignored.
Fixes a situation described in #87.