This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public GitStatusTask(IGitObjectFactory gitObjectFactory,
15
15
16
16
public override string ProcessArguments
17
17
{
18
- get { return "-c i18n.logoutputencoding=utf8 -c core.quotepath=false status -b -u --ignored -- porcelain" ; }
18
+ get { return "-c i18n.logoutputencoding=utf8 -c core.quotepath=false status -b -u --porcelain" ; }
19
19
}
20
20
public override TaskAffinity Affinity { get { return TaskAffinity . Exclusive ; } }
21
21
}
Original file line number Diff line number Diff line change @@ -29,20 +29,29 @@ public override bool IsBusy
29
29
public override void OnGUI ( )
30
30
{
31
31
string gitExecPath = null ;
32
+ string gitExecParentPath = null ;
33
+
32
34
string extension = null ;
33
- string gitInstallPath = null ;
35
+
34
36
if ( Environment != null )
35
37
{
36
38
extension = Environment . ExecutableExtension ;
39
+
37
40
if ( Environment . IsWindows )
38
41
{
39
42
extension = extension . TrimStart ( '.' ) ;
40
43
}
41
44
42
- gitInstallPath = Environment . GitInstallPath ;
43
-
44
45
if ( Environment . GitExecutablePath != null )
46
+ {
45
47
gitExecPath = Environment . GitExecutablePath . ToString ( ) ;
48
+ gitExecParentPath = Environment . GitExecutablePath . Parent . ToString ( ) ;
49
+ }
50
+
51
+ if ( gitExecParentPath == null )
52
+ {
53
+ gitExecParentPath = Environment . GitInstallPath ;
54
+ }
46
55
}
47
56
48
57
// Install path
@@ -57,7 +66,7 @@ public override void OnGUI()
57
66
gitExecPath = EditorGUILayout . TextField ( "Path to Git" , gitExecPath ) ;
58
67
if ( GUILayout . Button ( BrowseButton , EditorStyles . miniButton , GUILayout . Width ( 25 ) ) )
59
68
{
60
- var newValue = EditorUtility . OpenFilePanel ( GitInstallBrowseTitle , gitInstallPath , extension ) ;
69
+ var newValue = EditorUtility . OpenFilePanel ( GitInstallBrowseTitle , gitExecParentPath , extension ) ;
61
70
62
71
if ( ! string . IsNullOrEmpty ( newValue ) )
63
72
{
You can’t perform that action at this time.
0 commit comments