Skip to content

Commit 4637f71

Browse files
Merge pull request #70 from wcampbell0x2a/force-checkout
rel: 0.8.1; Force checkout head for Fast-Forward
2 parents bfe63df + fcdac6d commit 4637f71

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.8.1] - 05-30-2024
10+
- Force checkout when using Fast-Forward when updating git `crates.io-index`
11+
912
## [0.8.0] - 05-29-2024
1013
- Properly set local HEAD to fetched git repo `crates.io-index` when updating from previous zerus invocation
1114

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zerus"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
edition = "2021"
55
authors = ["wcampbell"]
66
description = "Lightweight binary to download only project required crates for offline crates.io mirror"

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,6 @@ fn fast_forward(
232232
println!("{}", msg);
233233
lb.set_target(rc.id(), &msg)?;
234234
repo.set_head(&name)?;
235-
repo.checkout_head(None)?;
235+
repo.checkout_head(Some(git2::build::CheckoutBuilder::default().force()))?;
236236
Ok(())
237237
}

0 commit comments

Comments
 (0)