File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,20 @@ def run(self, args):
138
138
C .set ('dirs.storage' , storage )
139
139
break
140
140
141
+ while True :
142
+ git = question ('What is the path of your Git installation?' , C .get ('git' ))
143
+ git = self .resolve_directory (git , username )
144
+
145
+ if not os .access (git , os .X_OK ):
146
+ logging .error ('Error while executing the Git command by path %s' % git + '.\n Please fix or use another executable path.' )
147
+ continue
148
+
149
+ gitversion = subprocess .run ([git , '--version' ], stdout = subprocess .PIPE )
150
+ logging .info ('Using ' + gitversion .stdout .decode ('utf-8' ))
151
+
152
+ C .set ('git' , git )
153
+ break
154
+
141
155
# The default configuration file should point to the right directory for dirs.mdk,
142
156
# we will just ensure that it exists.
143
157
mdkdir = C .get ('dirs.mdk' )
You can’t perform that action at this time.
0 commit comments