Fix fetching commits
This commit is contained in:
parent
5ca8fee66a
commit
441855378b
1 changed files with 1 additions and 1 deletions
|
|
@ -105,9 +105,9 @@ pub fn fetch_head(path: &Path, url: &str) -> Result<(), Error> {
|
||||||
pub fn fetch(path: &Path, url: &str, refspecs: &[String]) -> Result<(), Error> {
|
pub fn fetch(path: &Path, url: &str, refspecs: &[String]) -> Result<(), Error> {
|
||||||
let mut command = Command::new("git");
|
let mut command = Command::new("git");
|
||||||
command
|
command
|
||||||
.arg("fetch")
|
|
||||||
.arg("-C")
|
.arg("-C")
|
||||||
.arg(path)
|
.arg(path)
|
||||||
|
.arg("fetch")
|
||||||
.arg("--prune")
|
.arg("--prune")
|
||||||
.arg("--")
|
.arg("--")
|
||||||
.arg(url);
|
.arg(url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue