question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_git2_ junction directory is throwing off dirty checks

See original GitHub issue

After https://github.com/AArnott/Nerdbank.GitVersioning/pull/393 upgraded libgit2sharp from 0.27.0-preview-0007 to 0.27.0-preview-0024, tests and scenarios started failing because libgit2sharp’s dirty checks reported an uncommitted file with a _git2_ prefix. It actually looks like a directory junction. It’s causing Repository.RetrieveStatus().IsDirty to return true and the RepositoryStatus.Untracked collection to be non-empty.

If this new _git2_ directory is a required temporary location for opening the repo, can libgit2sharp be taught to ignore it for all such purposes?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ethomsoncommented, Oct 16, 2019
0reactions
AArnottcommented, Oct 22, 2019

Thanks! That worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Determine if Git working directory is clean from a script
Parsing the output of git status is a bad idea because the output is intended to be human readable, not machine-readable.
Read more >
How to solve "The directory is not empty" error when ...
To correct the issue, just run check disk: chkdsk /F e: This can be run from the search windows box or from a...
Read more >
Link Shell Extension (LSE)
Link Shell Extension (LSE) provides for the creation of Hardlinks, Junctions, Volume Mountpoints, and Symbolic Links, (herein referred to collectively as Links) ...
Read more >
Untitled
Air new zealand check in ti es, Victoria beckham wayne panther myspace. ... Aldershot train station, Off white x converse black, Cara menggunakan...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found