libgit2 / libgit2/libgit2sharp

Access Is Denied to log file

オープン
#1,320 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

Have an issue with this error message:

LibGit2Sharp.LibGit2SharpException: Could not open 'c:/../.git/logs/HEAD' for writing: Access is denied.

   at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in c:\projects\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 160
   at LibGit2Sharp.ReferenceCollection.MoveHeadTarget[T](T target) in c:\projects\libgit2sharp\LibGit2Sharp\ReferenceCollection.cs:line 631
   at LibGit2Sharp.Repository.Checkout(Branch branch, CheckoutOptions options) in c:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 911
  • We tried restarting process, and restarting the machine, this didn't immediately fix issue.
  • It was only after deleting the entire folder, and making a new checkout that we could stop the error.
  • We were able to use git command line and source tree on the folder with no problems..

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず Core/Ensure.cs、ReferenceCollection.cs、Repository.cs を通る失敗しているパスを確認し、次に報告された checkout の動作をコマンドラインの Git および SourceTree と比較してください。.git/logs/HEAD への書き込みが拒否される再現可能な原因を特定し、そのシナリオに対する修正を文書化または検証できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。