libgit2 / libgit2/libgit2sharp
Commits date wrong when date is prior to 01/01/1970
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When creating a commit with a signature dated before 01/01/1970,
even if the signature is correct, the commit gets a wrong date.
(If intended, is there a work-around ?)
Reproduction steps
var author = Signature(author_name, author_email, author_date)
var last_commit = repo.Commit(message, author, author)
Expected behavior
author.When == last_commit.Author.When
Actual behavior
if author_date < 01/01/1970
author.When != last_commit.Author.When
Version of LibGit2Sharp (release number or SHA1)
libgit2sharp 0.26.0
Operating system(s) tested; .NET runtime tested
dotnet 2.2.401 on Ubuntu 18.04.3 LTS
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、レポートにある Signature と Commit の呼び出しで、著者日時を 01/01/1970 より前に設定した場合の問題を .NET 2.2.401 と Ubuntu 18.04.3 で再現します。次に、commit の著者日時がどのようにシリアライズされて読み戻されるかを追跡し、エポック以前の日付について author.When equals last_commit.Author.When となることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100