Skip to content

Non-roundtrip push to josh branch when a commit has a . as the last character of the author name #1345

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

Closed
RalfJung opened this issue Aug 1, 2024 · 2 comments · Fixed by #1346

Comments

@RalfJung
Copy link
Contributor

RalfJung commented Aug 1, 2024

The commit rust-lang/rust-analyzer@5af51fa does not properly round-trip through a push to josh.

Original commit info (git show --format=raw):

commit 5af51fa47610d0f88dcab99aaaff2ee4fca17c00
tree 5cf661188e20157ffab5d742ce22d5fa44d18bd1
parent 4a91453409aaf58eba0a91e4b62a35f49814b394
author Winston H. <[email protected]> 1721814140 +0100
committer GitHub <[email protected]> 1721814140 +0100

After a round-trip through josh:

commit fc919994d0759bca7423444e0d0bc044df80359a
tree 5cf661188e20157ffab5d742ce22d5fa44d18bd1
parent 4a91453409aaf58eba0a91e4b62a35f49814b394
author Winston H <[email protected]> 1721814140 +0100
committer GitHub <[email protected]> 1721814140 +0100

The . after Winston H went missing. Seems like somewhere josh is normalizing usernames and doesn't like the trailing .?

@RalfJung RalfJung changed the title Non-roundtrip "push" to josh branch when a commit has a . as the last character of the author name Non-roundtrip push to josh branch when a commit has a . as the last character of the author name Aug 1, 2024
@RalfJung
Copy link
Contributor Author

RalfJung commented Aug 1, 2024

Seems like git used to prevent a . from even existing at the end of a username, but this got changed last year. So probably whatever git library josh is using needs to get the same kind of update?

@RalfJung
Copy link
Contributor Author

RalfJung commented Aug 1, 2024

This change was mirrored in libgit2 via libgit2/libgit2@cf320cc, which was included in libgit2 1.8. That needs version 0.19 of the git2 Rust crate.

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

Successfully merging a pull request may close this issue.

1 participant