Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2533eff

Browse files
committed
Make sure the clone service doesn't cache the location
The default clone path might be changed in the VS Git settings, so make sure the clone service picks those changes up (which are read in the ctor) by not caching the service itself.
1 parent 64fec93 commit 2533eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/Services/RepositoryCloneService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace GitHub.Services
1515
/// by Team Explorer.
1616
/// </summary>
1717
[Export(typeof(IRepositoryCloneService))]
18-
[PartCreationPolicy(CreationPolicy.Shared)]
18+
[PartCreationPolicy(CreationPolicy.NonShared)]
1919
public class RepositoryCloneService : IRepositoryCloneService
2020
{
2121
static readonly Logger log = LogManager.GetCurrentClassLogger();

0 commit comments

Comments
 (0)