Skip to content

Fix path function in tree_entry (fix for issue #570)#571

Merged
tbranyen merged 2 commits into
nodegit:masterfrom
jfremy:fix_treeentry_path
May 15, 2015
Merged

Fix path function in tree_entry (fix for issue #570)#571
tbranyen merged 2 commits into
nodegit:masterfrom
jfremy:fix_treeentry_path

Conversation

@jfremy
Copy link
Copy Markdown
Contributor

@jfremy jfremy commented May 15, 2015

Fix for issue #570
If the entry path goes beyond the immediate children (a file in a subdir for instance) then path would return a path missing the subdir name

As an example:
getEntry("test/rawcommit.js") => entry path will be returned as "rawcommit.js"

If the entry path goes beyond the immediate children (a file in a subdir
for instance) then path would return a path missing the subdir name
Comment thread lib/tree.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this path and change the variable later on to filePath?

@tbranyen
Copy link
Copy Markdown
Member

Thanks for this, one minor request!

@tbranyen
Copy link
Copy Markdown
Member

Looks good, tyvm!

tbranyen added a commit that referenced this pull request May 15, 2015
Fix path function in tree_entry (fix for issue #570)
@tbranyen tbranyen merged commit 51da106 into nodegit:master May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants