This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,22 @@ public async Task<NPath> FindGitInstallation()
111
111
if ( path == null )
112
112
path = await LookForSystemGit ( ) ;
113
113
114
- Logger . Trace ( "Git Installation folder {0} discovered: '{1}'" , path == null ? "not" : "" , path ) ;
114
+ if ( path == null )
115
+ {
116
+ Logger . Trace ( "Git Installation not discovered" ) ;
117
+ }
118
+ else
119
+ {
120
+ Logger . Trace ( "Git Installation discovered: '{0}'" , path ) ;
121
+ }
115
122
116
123
return path ;
117
124
}
118
125
119
126
private Task < NPath > LookForPortableGit ( )
120
127
{
128
+ Logger . Trace ( "LookForPortableGit" ) ;
129
+
121
130
var gitHubLocalAppDataPath = environment . UserCachePath ;
122
131
if ( ! gitHubLocalAppDataPath . DirectoryExists ( ) )
123
132
return null ;
@@ -138,10 +147,13 @@ private Task<NPath> LookForPortableGit()
138
147
139
148
private async Task < NPath > LookForSystemGit ( )
140
149
{
150
+ Logger . Trace ( "LookForSystemGit" ) ;
151
+
141
152
NPath path = null ;
142
153
if ( ! environment . IsWindows )
143
154
{
144
155
var p = new NPath ( "/usr/local/bin/git" ) ;
156
+
145
157
if ( p . FileExists ( ) )
146
158
path = p ;
147
159
}
You can’t perform that action at this time.
0 commit comments