-
-
Notifications
You must be signed in to change notification settings - Fork 72
Real Commit for Annotated Tag #167
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
Conversation
| { | ||
| $size = $repository->getSize(); | ||
| $this->assertGreaterThan(70, $size, 'Repository is greater than 70KB'); | ||
| $this->assertGreaterThan(65, $size, 'Repository is greater than 65KB'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this different?
|
I fixed the double rounding issue in getSize, so I think we are good to go now. My initial attempt returned a float, which is no good, but then I guess my various attempts at rounding got out of sync. Now round at the end only. |
And \r\n check out option
|
Please include the size fixes in a separate PR, so the changes are atomic. |
|
OK, will work on this tonight with new PR. |
|
Great, thanks. :) |
|
I've merged your other changes into master. |
|
Yes, I see. I'll merge into my version, see what we are at, and submit a
new PR.
Happy to help with this project. Good stuff!
Bruce
…On Fri, Mar 20, 2020 at 11:10 AM Graham Campbell ***@***.***> wrote:
I've merged your other changes into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABYW6S2TGWHEEVEWSZJX65DRIOBPNANCNFSM4LP5BPXQ>
.
|
Annotated tags are first class git objects and have there own hash and entry in the git repo. As such, a tag really has two hashes, one is the hash of the tag itself. The other is the hash into the source tree that the tag points to. Prior versions of gitlib returned the commit of the tag, rather than the commit of the main source tree. This branch fixes this and gives the user the more logical commit for the tag, which is the commit of the source tree that the annotated tag points to. Lightweight tags are not first class objects and their commit points to the source tree commit. This branch makes the behavior of lightweight and annotated commits the same.
Other improvements made to get unit testing to work on Windows: