Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion api/TaskAgentApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
if (splitPath.length === 0 || (splitPath.length === 1 && splitPath[0] === '')) {
return null;
}
if (splitPath.length === 2 && splitPath[0] === 'tfs') {

// if the first segment of the path is tfs, the second is the collection. if the url ends in / there will be a third, empty entry
if (splitPath[0] === 'tfs' && (splitPath.length === 2 || (splitPath.length === 3 && splitPath[2].length === 0))) {
//on prem
accountUrl += '/' + 'tfs';
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vso-node-api",
"description": "Node client for Visual Studio Online/TFS REST APIs",
"version": "0.6.0",
"version": "0.6.1",
"main": "./WebApi.js",
"repository": {
"type": "git",
Expand Down