Commits

md_5 authored f56c3840b41
BUILDTOOLS-356: Check includes for git author / email
No tags

src/main/java/org/spigotmc/builder/Builder.java

Modified
142 142 {
143 143 runProcess( CWD, "sh", "-c", "exit" );
144 144 } catch ( Exception ex )
145 145 {
146 146 System.out.println( "You must run this jar through bash (msysgit)" );
147 147 System.exit( 1 );
148 148 }
149 149
150 150 try
151 151 {
152 - runProcess( CWD, "git", "config", "--global", "user.name" );
152 + runProcess( CWD, "git", "config", "--global", "--includes", "user.name" );
153 153 } catch ( Exception ex )
154 154 {
155 155 System.out.println( "Git name not set, setting it to default value." );
156 156 runProcess( CWD, "git", "config", "--global", "user.name", "BuildTools" );
157 157 }
158 158 try
159 159 {
160 - runProcess( CWD, "git", "config", "--global", "user.email" );
160 + runProcess( CWD, "git", "config", "--global", "--includes", "user.email" );
161 161 } catch ( Exception ex )
162 162 {
163 163 System.out.println( "Git email not set, setting it to default value." );
164 164 runProcess( CWD, "git", "config", "--global", "user.email", "unconfigured@null.spigotmc.org" );
165 165 }
166 166
167 167 File workDir = new File( "work" );
168 168 workDir.mkdir();
169 169
170 170 File bukkit = new File( "Bukkit" );

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut