Skip to content

Commit c409a98

Browse files
committed
fix a error in tree_entry path and add overrides
1 parent 4e0ee97 commit c409a98

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

generate/descriptor.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,29 @@
522522
"git_index_new": {
523523
"ignore": true
524524
},
525+
"git_index_read": {
526+
"args": {
527+
"force": {
528+
"isOptional": true
529+
}
530+
}
531+
},
525532
"git_index_remove_all": {
526533
"ignore": true
527534
},
535+
"git_index_remove_bypath": {
536+
"jsFunctionName": "removeByPath"
537+
},
528538
"git_index_update_all": {
529539
"ignore": true
530540
},
541+
"git_index_write": {
542+
"args": {
543+
"force": {
544+
"isOptional": true
545+
}
546+
}
547+
},
531548
"git_index_write_tree_to": {
532549
"ignore": true
533550
}
@@ -1042,6 +1059,13 @@
10421059
}
10431060
}
10441061
},
1062+
"signature": {
1063+
"functions": {
1064+
"git_signature_new": {
1065+
"isAsync": false
1066+
}
1067+
}
1068+
},
10451069
"smart": {
10461070
"functions": {
10471071
"git_smart_subtransport_git": {

lib/tree_entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ TreeEntry.prototype.getBlob = function() {
8787
* @return {String}
8888
*/
8989
TreeEntry.prototype.path = function(callback) {
90-
return path.join(this.parent.path(), this.name());
90+
return path.join(this.parent.path(), this.filename());
9191
};
9292

9393
/**

0 commit comments

Comments
 (0)