Skip to content

Wrong commit order when checking out buggy revision #324

@GabrieleMaurina

Description

@GabrieleMaurina

Hi,
I am getting a wrong git history when checking out a buggy commit.

I executed:

defects4j checkout -p Lang -v 1b -w ./lang_1_buggy
cd lang_1_buggy
git log --oneline

and I got this:

5ad71ec7 (HEAD, tag: D4J_Lang_1_BUGGY_VERSION) D4J_Lang_1_BUGGY_VERSION
4058d66a (tag: D4J_Lang_1_FIXED_VERSION) D4J_Lang_1_FIXED_VERSION
32533071 (tag: D4J_Lang_1_POST_FIX_REVISION) D4J_Lang_1_POST_FIX_REVISION
687b2e62 LANG-747 NumberUtils does not handle Long Hex numbers
...

As you can see BUGGY, FIXED and POST_FIX revisions are in the wrong order, infact the fix comes before the bug in the git history.

I am showing this because I am interested in the real commit that preceded BUGGY. Normally I would just do git checkout HEAD^, however in this case it would get me to FIXED_VERSION, which is not what I want. Would you know if the commit before POST_FIX, in this case 687b2e62, is the actual commit that preceded BUGGY?

Thanks,
Gabriele

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions