8000 metadata fileName encode · xgeek-net/pipeline@bb15c7d · GitHub
[go: up one dir, main page]

Skip to content

Commit bb15c7d

Browse files
author
ka.i
committed
metadata fileName encode
1 parent 4b4929d commit bb15c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/class/BitbucketApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class BitbucketApi {
496496
const metadata = new Metadata();
497497
metadata.makeDir(self.pipeline.id, filePath)
498498
.then(function(localPath) {
499-
const fileContentUri = path.join('repositories', username, reposName, 'src', sha, filePath + '?raw');
499+
const fileContentUri = path.join('repositories', username, reposName, 'src', sha, encodeURIComponent(filePath) + '?raw');
500500
self.apiCall(fileContentUri, {})
501501
.on('response', function(response) {
502502
if(utils.isBlank(response.statusCode) || response.statusCode != '200') {

0 commit comments

Comments
 (0)
0