fmt
This commit is contained in:
parent
433c0d212e
commit
3c702cf43f
1 changed files with 1 additions and 4 deletions
|
|
@ -163,10 +163,7 @@ pub async fn apply_commit(config_dir: &Path, commit_ref: &str) -> Result<()> {
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("git cat-file in {}", config_dir.display()))?;
|
.with_context(|| format!("git cat-file in {}", config_dir.display()))?;
|
||||||
if !st.success() {
|
if !st.success() {
|
||||||
bail!(
|
bail!("commit {commit_ref} not found in {}", config_dir.display());
|
||||||
"commit {commit_ref} not found in {}",
|
|
||||||
config_dir.display()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
git(config_dir, &["update-ref", "refs/heads/main", commit_ref]).await?;
|
git(config_dir, &["update-ref", "refs/heads/main", commit_ref]).await?;
|
||||||
git(config_dir, &["reset", "--hard", commit_ref]).await?;
|
git(config_dir, &["reset", "--hard", commit_ref]).await?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue