Showing 3 changed files with 8 additions and 4 deletions
+1
CHANGES
... ...
@@ -1,5 +1,6 @@
1 1
 1.4
2 2
   - fix markdown bugs (*em*, _em_)
3
+  - default readme file is changed. README is changed to README.md
3 4
 1.3
4 5
   - add README.md support
5 6
   - add submodule support
+6 -3
lib/Gitprep/Manager.pm
... ...
@@ -457,14 +457,17 @@ sub _create_rep {
457 457
       close $init_fh or croak "Can't execute git init";
458 458
       
459 459
       # Add README
460
-      my $file = "$temp_work/README";
461
-      open my $fh, '>', $file
460
+      my $file = "$temp_work/README.md";
461
+      open my $readme_fh, '>', $file
462 462
         or croak "Can't create $file: $!";
463
+      print $readme_fh "$project\n=====\n";
464
+      close $readme_fh;
465
+      
463 466
       my @git_add_cmd = $git->cmd_rep(
464 467
         $temp_work,
465 468
         "--work-tree=$temp_work",
466 469
         'add',
467
-        'README'
470
+        'README.md'
468 471
       );
469 472
       open my $add_fh, "-|", @git_add_cmd
470 473
         or croak "Can't open git add";
+1 -1
xt/user.t
... ...
@@ -320,7 +320,7 @@ note 'Profile';
320 320
     $t->post_ok('/_new?op=create', form => {project => 't2', description => 'Hello', readme => 1});
321 321
     $t->content_like(qr/first commit/);
322 322
     $t->content_like(qr/t2\.git/);
323
-    $t->content_like(qr/README/);
323
+    $t->content_like(qr/README\.md/);
324 324
     $t->content_like(qr/kimoto1\@localhost/);
325 325
 
326 326
     # Settings page(don't has README)