return;
}
let output = output(
- Command::new("git")
+ self.config
+ .git()
.args(&["config", "--file"])
.arg(&self.config.src.join(".gitmodules"))
.args(&["--get-regexp", "path"]),
// Figure out how many merge commits happened since we branched off master.
// That's our beta number!
// (Note that we use a `..` range, not the `...` symmetric difference.)
- let count = output(
- Command::new("git")
- .arg("rev-list")
- .arg("--count")
- .arg("--merges")
- .arg("refs/remotes/origin/master..HEAD")
- .current_dir(&self.src),
- );
+ let count =
+ output(self.config.git().arg("rev-list").arg("--count").arg("--merges").arg(format!(
+ "refs/remotes/origin/{}..HEAD",
+ self.config.stage0_metadata.config.nightly_branch
+ )));
let n = count.trim().parse().unwrap();
self.prerelease_version.set(Some(n));
n