Description: Drop git operations from configuration script
 The configuration script performs some operations with git to perform some
 clean-ups and generate debugging data. We do not need this here.
Author: Athos Ribeiro <athos@debian.org>
Forwarded: not-needed
Last-Update: 2025-09-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc-base/configure.php
+++ b/doc-base/configure.php
@@ -278,18 +278,6 @@
     }
 } // }}}
 
-if ( true ) # Initial clean up
-{
-    $dir = escapeshellarg( __DIR__ );
-    $cmd = "git -C $dir clean temp -fdx --quiet";
-    $ret = 0;
-    passthru( $cmd , $ret );
-    if ( $ret != 0 )
-    {
-        echo "doc-base/temp clean up FAILED.\n";
-        exit( 1 );
-    }
-}
 
 $srcdir  = dirname(__FILE__);
 $workdir = $srcdir;
@@ -575,28 +563,6 @@
 }
 
 
-// Show local repository status to facilitate debug
-
-$repos = array();
-$repos['doc-base']  = $ac['basedir'];
-$repos['en']        = "{$ac['rootdir']}/{$ac['EN_DIR']}";
-$repos[$ac['LANG']] = "{$ac['rootdir']}/{$ac['LANG']}";
-$repos = array_unique($repos);
-
-$output = "";
-foreach ( $repos as $name => $path )
-{
-    $path = escapeshellarg( $path );
-    $branch = trim( `git -C $path rev-parse --abbrev-ref HEAD` );
-    $suffix = $branch == "master" ? "" : " (branch $branch)";
-    $output .= str_pad( "$name:" , 10 );
-    $output .= rtrim( `git -C $path rev-parse HEAD`  ?? "" ) . "$suffix ";
-    $output .= rtrim( `git -C $path for-each-ref --format="%(push:track)" refs/heads/$branch` ?? "" ) . "\n";
-    $output .= rtrim( `git -C $path status -s` ?? "" ) . "\n";
-}
-while( str_contains( $output , "\n\n" ) )
-    $output = str_replace( "\n\n" , "\n" , $output );
-echo "\n" , trim( $output ) . "\n\n";
 
 
 xml_configure();
