mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 06:17:43 +00:00
submodule: explicitly cast to the teensy time value
This commit is contained in:
parent
b2ca8d9c29
commit
3b2fa0fb36
@ -778,9 +778,9 @@ int git_submodule_add_to_index(git_submodule *sm, int write_index)
|
|||||||
if ((error = git_commit_lookup(&head, sm_repo, &sm->wd_oid)) < 0)
|
if ((error = git_commit_lookup(&head, sm_repo, &sm->wd_oid)) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
entry.ctime.seconds = git_commit_time(head);
|
entry.ctime.seconds = (int32_t)git_commit_time(head);
|
||||||
entry.ctime.nanoseconds = 0;
|
entry.ctime.nanoseconds = 0;
|
||||||
entry.mtime.seconds = git_commit_time(head);
|
entry.mtime.seconds = (int32_t)git_commit_time(head);
|
||||||
entry.mtime.nanoseconds = 0;
|
entry.mtime.nanoseconds = 0;
|
||||||
|
|
||||||
git_commit_free(head);
|
git_commit_free(head);
|
||||||
|
Loading…
Reference in New Issue
Block a user