]> Sergey Matveev's repositories - public-inbox.git/commitdiff
import: do not write a "description" file
authorEric Wong <e@80x24.org>
Sun, 12 Sep 2021 07:47:14 +0000 (07:47 +0000)
committerEric Wong <e@80x24.org>
Sun, 12 Sep 2021 07:48:58 +0000 (07:48 +0000)
The default value is worthless to us and git functions fine
without the file.  public-inbox-init will create a useful one
in the next change.

lib/PublicInbox/Import.pm
t/www_listing.t

index 362cdc47375db4b7947c41747c6d15bf91583d7d..17adfabd0d25b1a11cc2599ff53c4a658814c96b 100644 (file)
@@ -451,9 +451,6 @@ sub add {
 }
 
 my @INIT_FILES = ('HEAD' => undef, # filled in at runtime
-               'description' => <<EOD,
-Unnamed repository; edit this file 'description' to name the repository.
-EOD
                'config' => <<EOC);
 [core]
        repositoryFormatVersion = 0
index 7ea12eea3712e292feed1b55b70b0852aded4d1a..5f90139af65bd63f4bd1b667b1d03548c9ae6a5a 100644 (file)
@@ -101,7 +101,6 @@ SKIP: {
        is(xsys('git', "--git-dir=$alt", qw(config gitweb.owner),
                "lorelei \xc4\x80"), 0,
                'set gitweb user');
-       ok(unlink("$bare->{git_dir}/description"), 'removed bare/description');
        open $fh, '>', $cfgfile or xbail "open $cfgfile: $!";
        $fh->autoflush(1);
        print $fh <<"" or xbail "print $!";