Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0a6c5bf
Add RevWalker
jairbubbles May 20, 2023
b7f53a0
feat: Add CustomHeaders to PushOptions
James-LG Nov 3, 2023
1201220
Update MinVer
bording Nov 4, 2023
30b2c1c
Update CHANGES.md for v0.28
bording Nov 4, 2023
c63e2f3
Update LibGit2Sharp.NativeBinaries to 2.0.321
bording Nov 27, 2023
de6efb9
Update GitFetchOptions to include new Depth value
bording Nov 27, 2023
8b90255
Remove CentOS 7 from test matrix
bording Nov 27, 2023
5bace98
Update test to match new sort order
bording Nov 27, 2023
edd862a
Update GitProxyOptions
bording Nov 25, 2023
24b242e
Add public proxy APIs
bording Nov 25, 2023
12975be
No reason to derive from FetchOptionsBase and have FetchOptions property
bording Nov 26, 2023
19b955e
Wire up proxy options
bording Nov 26, 2023
e717b4b
Ensure FetchOptions property is non-null
bording Nov 26, 2023
edd325b
Make ProxyOptions sealed to satisfy test
bording Nov 26, 2023
e80a980
Remove property setters since options are initialized
bording Nov 26, 2023
54c085a
Add XML comments
bording Nov 26, 2023
829d725
Update how submodule fetch options are handled
bording Nov 26, 2023
baf1e46
Update CHANGES.md for v0.29
bording Dec 3, 2023
1b3c823
Add project to test trimming compatibility
bording Mar 14, 2024
67a5d17
Address trimming warnings
bording Mar 14, 2024
ae8f912
Use .NET 8 SDK
bording Mar 14, 2024
7090e44
Fix failing test
bording Mar 16, 2024
142c995
Add net8.0 test targets
bording Mar 16, 2024
f4d3a47
Use .NET 8 SDK artifacts output
bording Mar 16, 2024
a5b5009
Update packages
bording Mar 16, 2024
20a3210
Fix test analyzer warnings
bording Mar 16, 2024
41732ac
Update workflow actions
bording Mar 16, 2024
d63ced1
Update testing matrix
bording Mar 16, 2024
32f647c
Fix analyzer warnings
bording Mar 16, 2024
cf318fb
Clean up more analyzer warnings
bording Mar 16, 2024
5d52455
Update LibGit2Sharp.NativeBinaries to 2.0.322
bording Mar 16, 2024
b75d5e1
Increase assert range to avoid flaky tests
bording Mar 17, 2024
b3743b7
Update CHANGES.md for v0.30
bording Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure FetchOptions property is non-null
  • Loading branch information
bording authored and jairbubbles committed May 17, 2024
commit e717b4bc25cbb18a6e62b47c23ca76db70e77a4f
2 changes: 1 addition & 1 deletion LibGit2Sharp/CloneOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public CloneOptions()
/// <summary>
/// Gets or sets the fetch options.
/// </summary>
public FetchOptions FetchOptions { get; set; }
public FetchOptions FetchOptions { get; set; } = new();

#region IConvertableToGitCheckoutOpts

Expand Down
2 changes: 1 addition & 1 deletion LibGit2Sharp/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public static string Clone(string sourceUrl, string workdirPath,
Ensure.ArgumentNotNull(sourceUrl, "sourceUrl");
Ensure.ArgumentNotNull(workdirPath, "workdirPath");

options = options ?? new CloneOptions();
options ??= new CloneOptions();

// context variable that contains information on the repository that
// we are cloning.
Expand Down