提交 c5e7bf85 编写于 作者: J Joao Moreno

fix raw git service .show

上级 a9f54a84
......@@ -160,7 +160,7 @@ export class RawGitService implements IRawGitService {
// careful, this buffers the whole object into memory
show(filePath: string, treeish?: string): TPromise<string> {
treeish = treeish === '~' ? '' : treeish;
treeish = (!treeish || treeish === '~') ? '' : treeish;
return this.repo.buffer(treeish + ':' + filePath).then(null, e => {
if (e instanceof GitError) {
return ''; // mostly untracked files end up in a git error
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册