Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vergen-gix describing dirty doesn't work #359

Open
demoray opened this issue Jul 17, 2024 · 2 comments
Open

vergen-gix describing dirty doesn't work #359

demoray opened this issue Jul 17, 2024 · 2 comments

Comments

@demoray
Copy link

demoray commented Jul 17, 2024

The following appropriately identifies a "dirty" repo:

use vergen_git2::{Emitter, Git2Builder};
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let git = Git2Builder::default().describe(true, true, None).build()?;
    Emitter::default().add_instructions(&git)?.emit()?;
    Ok(())
}

While this does not:

use vergen_gix::{Emitter, GixBuilder};
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let git = GixBuilder::default().describe(true, true, None).build()?;
    Emitter::default().add_instructions(&git)?.emit()?;
    Ok(())
}
@max-sixty
Copy link

Curiously I get a bug in the same command but slightly different: I get dirty but not all tags — so '0.2.5-2720-g48c52f18-dirty with gix than the correct 0.13.0-20-g48c52f1-dirty with git2

@SanchithHegde
Copy link
Contributor

@max-sixty I stumbled upon the same issue you've reported, I've opened #364 for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants