You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LibGit2Sharp.Tests/WorktreeFixture.cs
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
usingLibGit2Sharp.Tests.TestHelpers;
2
-
usingSystem;
1
+
usingSystem;
3
2
usingSystem.Collections.Generic;
4
3
usingSystem.IO;
5
4
usingSystem.Linq;
5
+
usingLibGit2Sharp.Tests.TestHelpers;
6
6
usingXunit;
7
7
8
8
namespaceLibGit2Sharp.Tests
@@ -252,7 +252,6 @@ public void CanAddWorktree_WithUncommitedChanges()
252
252
Assert.Equal(3,repo.Worktrees.Count());
253
253
254
254
// Check that branch contains same number of files and folders
255
-
// NOTE: There is an open bug - [Repository.Worktrees.Add leaves now worktree empty](https://github.com/libgit2/libgit2sharp/issues/2037)
256
255
Assert.True(repo.RetrieveStatus().IsDirty);
257
256
varfilesInMain=GetFilesOfRepo(repoPath);
258
257
varfilesInBranch=GetFilesOfRepo(path);
@@ -289,10 +288,10 @@ public void CanAddWorktree_WithCommitedChanges()
289
288
Assert.Equal(3,repo.Worktrees.Count());
290
289
291
290
// Check that branch contains same number of files and folders
292
-
// NOTE: There is an open bug - [Repository.Worktrees.Add leaves now worktree empty](https://github.com/libgit2/libgit2sharp/issues/2037)
293
291
Assert.False(repo.RetrieveStatus().IsDirty);
294
292
varfilesInMain=GetFilesOfRepo(repoPath);
295
293
varfilesInBranch=GetFilesOfRepo(path);
294
+
296
295
Assert.Equal(filesInMain,filesInBranch);
297
296
}
298
297
}
@@ -314,7 +313,6 @@ public void CanAddLockedWorktree_WithUncommitedChanges()
314
313
Assert.Equal(3,repo.Worktrees.Count());
315
314
316
315
// Check that branch contains same number of files and folders
317
-
// NOTE: There is an open bug - [Repository.Worktrees.Add leaves now worktree empty](https://github.com/libgit2/libgit2sharp/issues/2037)
318
316
Assert.True(repo.RetrieveStatus().IsDirty);
319
317
varfilesInMain=GetFilesOfRepo(repoPath);
320
318
varfilesInBranch=GetFilesOfRepo(path);
@@ -351,7 +349,6 @@ public void CanAddLockedWorktree_WithCommitedChanges()
351
349
Assert.Equal(3,repo.Worktrees.Count());
352
350
353
351
// Check that branch contains same number of files and folders
354
-
// NOTE: There is an open bug - [Repository.Worktrees.Add leaves now worktree empty](https://github.com/libgit2/libgit2sharp/issues/2037)
355
352
Assert.False(repo.RetrieveStatus().IsDirty);
356
353
varfilesInMain=GetFilesOfRepo(repoPath);
357
354
varfilesInBranch=GetFilesOfRepo(path);
@@ -380,7 +377,6 @@ public void CanAddWorktreeForCommittish()
380
377
Assert.Equal(3,repo.Worktrees.Count());
381
378
382
379
// Check that branch contains same number of files and folders
383
-
// NOTE: There is an open bug - [Repository.Worktrees.Add leaves now worktree empty](https://github.com/libgit2/libgit2sharp/issues/2037)
0 commit comments