mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: V-001 security vulnerability
Automated security fix generated by OrbisAI Security
This commit is contained in:
parent
d9cd1907d9
commit
ddf99060e4
1 changed files with 2 additions and 2 deletions
|
|
@ -8,11 +8,11 @@ pub(super) struct Git;
|
||||||
|
|
||||||
impl Git {
|
impl Git {
|
||||||
pub(super) async fn clone(url: &str, path: &Path) -> Result<()> {
|
pub(super) async fn clone(url: &str, path: &Path) -> Result<()> {
|
||||||
Self::exec(|c| c.args(["clone", url]).arg(path)).await
|
Self::exec(|c| c.args(["clone", "--no-tags", url]).arg(path)).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) async fn fetch(path: &Path) -> Result<()> {
|
pub(super) async fn fetch(path: &Path) -> Result<()> {
|
||||||
Self::exec(|c| c.arg("fetch").current_dir(path)).await
|
Self::exec(|c| c.args(["fetch", "--no-tags"]).current_dir(path)).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) async fn checkout(path: &Path, rev: &str) -> Result<()> {
|
pub(super) async fn checkout(path: &Path, rev: &str) -> Result<()> {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue