You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turns out that #object sets the sha based on the parsed reference (turning HEAD into the full object sha).
On the other hand #date delegates to the commiter and, in order to get the commiter, the objects triggers a check_commit method that fetchs metadata for the given sha and updates some of its attributes, including the sha if present.
Since HEAD is clearly not a sha, but a relative reference to one of them, the previously value should be respected.
I may add a name like attribute holding HEAD and will lock the sha to prevent these kind of substitutions.
`
foo = REPOSITORY.object('HEAD')
foo.sha => "b64400d7dc2dd23474120e12c7bca59b41be771a"
foo.date => Tue Jul 21 14:55:16 -0700 2009
foo.sha => "HEAD"
The text was updated successfully, but these errors were encountered: