mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
update git.listfiles to list files in .insomnia directory (#5683)
* update git.listfiles to list files in .insomnia directory * filter git.listfiles result instead of function call * Update packages/insomnia/src/sync/git/git-vcs.ts with cleanup suggestions Co-authored-by: James Gatz <jamesgatzos@gmail.com> * fix lint Co-authored-by: Patrick Murrell <pmurrell@lcs.com> Co-authored-by: James Gatz <jamesgatzos@gmail.com> Co-authored-by: Filipe Freire <livrofubia@gmail.com>
This commit is contained in:
parent
7417acb7b9
commit
18defb5719
@ -146,8 +146,9 @@ export class GitVCS {
|
||||
|
||||
async listFiles() {
|
||||
console.log('[git] List files');
|
||||
const files = await git.listFiles({ ...this._baseOpts });
|
||||
return files.map(convertToOsSep);
|
||||
const repositoryFiles = await git.listFiles({ ...this._baseOpts });
|
||||
const insomniaFiles = repositoryFiles.filter(file => file.startsWith(GIT_INSOMNIA_DIR_NAME)).map(convertToOsSep);
|
||||
return insomniaFiles;
|
||||
}
|
||||
|
||||
async getBranch() {
|
||||
|
Loading…
Reference in New Issue
Block a user