Skip to content

Commit 3cf725c

Browse files
author
Ilya Radchenko
committed
Don't encode repoId
It says it's a number for the format, but in the model it's a string..
1 parent 8ad8525 commit 3cf725c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/webapp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
},
4343

4444
getFile: function (filename, ref, account, config, project, done) {
45-
var repoId = encodeURIComponent(project.provider.repo_id);
45+
var repoId = project.provider.repo_id;
4646
var branch = encodeURIComponent(ref.branch);
4747
var encodedFileName = encodeURIComponent(filename);
4848
var uri = util.format('projects/%d/repository/blobs/%s?filepath=%s', repoId, branch, encodedFileName);
@@ -57,7 +57,7 @@ module.exports = {
5757
},
5858

5959
getBranches: function (account, config, project, done) {
60-
var repoId = encodeURIComponent(project.provider.repo_id);
60+
var repoId = project.provider.repo_id;
6161
var uri = util.format('projects/%d/repository/branches', repoId);
6262

6363
debug("Getting URI " + uri);

0 commit comments

Comments
 (0)