We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Optimize the source code for listing remote URL.
async localRepository(path) { let validateGitRepo = git(path); let validateGit = await validateGitRepo.checkIsRepo(); let listRemote; try { listRemote = await git(path).listRemote(["--get-url"]); if (listRemote.slice(-4, -1) === "git") { this.$store.commit({ type: "repository/localRepositoryRemote", remote: listRemote }); } } catch (error) { console.log(error); } try { if (validateGit) { this.$store.commit({ type: "repository/addLocalRepository", name: this.getRepositoryName(path), path: path, remote: listRemote, commits: true, remotes: true }); } } catch (error) { console.log(error); } }
The text was updated successfully, but these errors were encountered:
This issue has been dropped against this issue #170
Sorry, something went wrong.
mittalyashu
No branches or pull requests
Description
Optimize the source code for listing remote URL.
Screencasts
The text was updated successfully, but these errors were encountered: