Showing 1 changed files with 4 additions and 3 deletions
+4 -3
lib/Gitprep/Manager.pm
... ...
@@ -465,9 +465,9 @@ sub _create_rep {
465 465
       or croak "Can't move post-update";
466 466
     
467 467
     # Description
468
+    my $description = $opts->{description};
469
+    $description = '' unless defined $description;
468 470
     {
469
-      my $description = $opts->{description};
470
-      $description = '' unless defined $description;
471 471
       my $file = "$rep/description";
472 472
       open my $fh, '>', $file
473 473
         or croak "Can't open $file: $!";
... ...
@@ -494,7 +494,8 @@ sub _create_rep {
494 494
       my $file = "$temp_work/README.md";
495 495
       open my $readme_fh, '>', $file
496 496
         or croak "Can't create $file: $!";
497
-      print $readme_fh "$project\n=====\n";
497
+      print $readme_fh "# $project\n";
498
+      print $readme_fh "\n" . encode('UTF-8', $description) . "\n";
498 499
       close $readme_fh;
499 500
       
500 501
       my @git_add_cmd = $git->cmd_rep(