We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bbba76 commit acbacacCopy full SHA for acbacac
2 files changed
packages/code-api/src/atomgit/atomgit.service.ts
@@ -109,8 +109,15 @@ export class AtomGitAPIService implements ICodeAPIService {
109
}
110
async getBlob(repo: IRepositoryModel, entry: EntryParam): Promise<Uint8Array> {
111
const { path } = entry;
112
+ const { ref } = repo;
113
const res = await this.request<API.ResponseContentBlob>(
- `/repos/${this.getProjectPath(repo)}/contents/${path}`,
114
+ `/repos/${this.getProjectPath(repo)}/contents`,
115
+ {
116
+ params: {
117
+ ref,
118
+ path: encodeURIComponent(path)
119
+ }
120
121
);
122
123
const { content, encoding } = res;
packages/code-api/src/common/types.ts
@@ -80,6 +80,7 @@ export interface IRepositoryModel {
80
owner: string;
81
name: string;
82
commit: string;
83
+ ref?: string;
84
85
86
export interface CommitParams {
0 commit comments