Skip to content

Commit

Permalink
Merge pull request #70 from wcampbell0x2a/force-checkout
Browse files Browse the repository at this point in the history
rel: 0.8.1; Force checkout head for Fast-Forward
  • Loading branch information
wcampbell0x2a authored May 30, 2024
2 parents bfe63df + fcdac6d commit 4637f71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.1] - 05-30-2024
- Force checkout when using Fast-Forward when updating git `crates.io-index`

## [0.8.0] - 05-29-2024
- Properly set local HEAD to fetched git repo `crates.io-index` when updating from previous zerus invocation

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zerus"
version = "0.8.0"
version = "0.8.1"
edition = "2021"
authors = ["wcampbell"]
description = "Lightweight binary to download only project required crates for offline crates.io mirror"
Expand Down
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,6 @@ fn fast_forward(
println!("{}", msg);
lb.set_target(rc.id(), &msg)?;
repo.set_head(&name)?;
repo.checkout_head(None)?;
repo.checkout_head(Some(git2::build::CheckoutBuilder::default().force()))?;
Ok(())
}

0 comments on commit 4637f71

Please sign in to comment.