libgit2 / libgit2/libgit2sharp
Cloned repository is dirty
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
Reproduction steps
Clone remote repository to local folder
var options = new CloneOptions
{
CredentialsProvider = (url, user, cred) => new UsernamePasswordCredentials { Username = userName, Password = passWord }
};
Repository.Clone(_remoteUrl, _localPath, options);
Expected behavior
git status must return nothing to commit, working tree clean
Actual behavior
git status returns
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: Managers/ashish.reddy-automation-eng.productsem-20191015.yaml
deleted: Managers/ashish.reddy-coaching-eng.productsem-20191003.yaml
deleted: Managers/ashish.reddy-coaching-eng.productsem-20191015.yaml
deleted: Managers/gowtham.ramachandra-coaching-Eng.Manager-20191008.yaml
deleted: Managers/gowtham.ramachandra-coaching-Eng.Manager-20191009.yaml
deleted: Managers/gowtham.ramachandra-process-improvement-Eng.Manager-20191008.yaml
deleted: Managers/radhesh.radhakrishnan-process-improvement-eng.manager-20191011.yaml
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: DataStructures/automation-schema.json
modified: DataStructures/coaching-schema.json
modified: DataStructures/process-improvement-schema.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
_git2_a18992
Version of LibGit2Sharp (release number or SHA1)
0.26.2
Operating system(s) tested; .NET runtime tested
Windows 10 Version 2004 10.0.19041
.Net Core 3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report with Repository.Clone and the shown CloneOptions on Windows 10 with .NET Core 3.1, using LibGit2Sharp 0.26.2. Inspect the clone result and compare it with git status; done means a fresh clone has no staged, unstaged, or untracked changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100