-
Notifications
You must be signed in to change notification settings - Fork 114
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
Display the original commit message when mirroring #710
Comments
We might display the message using the detail field. |
There might be more than 1 commit involved in a mirroring attempt. Should we show every commit message (up to N commits)? |
That's a good idea. |
At second thought, we probably should show the latest one only, given we're going to use shallow clone and shallow fetch (see #801). |
From my understanding, here is the pr: #818 |
Related: #710 Motivation: Currently, we construct commit messages while mirroring by: > "Mirror " + abbrId + ", " + remoteRepoUri() + '#' + remoteBranch()+ " to the repository '" + localRepo().name() So, we would like to use the original message which is useful for users. Modifications: 1. Get a commit message from RevWalk: > RevCommit commit = revWalk.parseCommit(objectIdOfCommit); 2. Generate a detail message including: author's name, email, time, and message. Result: We display the original commit instead while mirroring.
Currently, the commit message of a commit that is pushed by the mirroring task looks like this:
It does not contain the original commit message which is useful to users. It would be nice if we can display the original commit message.
We can retrieve the message via:
The text was updated successfully, but these errors were encountered: