-
Notifications
You must be signed in to change notification settings - Fork 290
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
wrong last commit reported with list_command | git rev-list --stdin #293
Comments
What do you think @CliffHoogervorst ? |
@CliffHoogervorst did you had time to have a look ? |
I have a similar issue: due to a rebase, I have one commit on my branch with a commit date that is newer than the head of the branch (in my case it's a few minutes newer, not 100 years!). The Concourse git-resource now picks that commit as the "latest" on the branch, even if I explicitly name the branch on the resource:
How can I get Concourse git-resource to correctly track a branch, rather than incorrectly sorting commits by commit date? |
@CliffHoogervorst could you come back to us ? Maybe @vito have some ideas ? I could do a PR to change The current workaround is to "disable" the "faulty" commit on concourse resource. |
We just saw the same behaviour as @RichardBradley described. Rebase involved
|
Last commit reported could be wrong after a rebase. Introduced by concourse@c7ce409 Keep only the first line instead of running a second time `git rev-lis`
PR #310 have been created with the |
Last commit reported could be wrong after a rebase. Introduced by concourse@c7ce409 Keep only the first line instead of running a second time `git rev-lis` Signed-off-by: talset <[email protected]>
@RichardBradley @simonjohansson Are you able to reproduce the issue ? |
Last commit reported could be wrong after a rebase or wrong commiter date. Use `--date-order` to show commits in the commit timestamp order. Signed-off-by: talset <[email protected]>
On a customer git it seems they had a weird commit with year 2106 instead of 2016 :
Since c7ce409 / #271
06a8e882889e6e164018271f000330d4c23004bd
is detected as the latest commit each time.In this case the cmd is
What is the purpose of this ?
Should it be reverted ? Or changed by
list_command+="| git rev-list --stdin --date-order -1"
? Or simplylist_command+="| head -n1"
?The text was updated successfully, but these errors were encountered: