Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporated changes to submodules (spider and parser). #77

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "src/modules/searchSECO-spider"]
path = src/modules/searchSECO-spider
url = https://github.com/SecureSECODAO/searchSECO-spider
url = ../searchSECO-spider
[submodule "src/modules/searchSECO-databaseAPI"]
path = src/modules/searchSECO-databaseAPI
url = https://github.com/SecureSECODAO/searchSECO-databaseAPI
Expand Down
3 changes: 3 additions & 0 deletions src/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ export default abstract class Command {
const printer = new MatchPrinter();
await printer.PrintHashMatches(url, metadata.id, projectMethods, projectBlaming, checkResponse, dbProjectInfo, dbAuthorInfo);
printer.Close();
await this._moduleFacade.ClearRepository();

return true
}

Expand Down Expand Up @@ -263,6 +265,7 @@ export default abstract class Command {
await this.loopThroughTags(tags, metadata, startingTime, jobID, jobTime);
}
*/
await this._moduleFacade.ClearRepository();
}

/**
Expand Down
7 changes: 7 additions & 0 deletions src/ModuleFacade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export default class ModuleFacade {
return await this._spider.downloadRepo(url, this._filePath, branch);
}

/**
* Uses the spider to clear a repository
* */
public async ClearRepository() {
await this._spider.clearDirectory(this._filePath);
}

/**
* Uses the spider to update the repository to a different tag, keeping track of unchanged files
* @param prevTag The previous tag
Expand Down
2 changes: 1 addition & 1 deletion src/modules/searchSECO-parser
Submodule searchSECO-parser updated 0 files
2 changes: 1 addition & 1 deletion src/modules/searchSECO-spider
Loading