X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/5d6e6ff9c755cec8b800b10af499beb6d323026a35a60bd5bbc8b136d265af16..427852c6ac6bc4940e10c98c736d5112423c4f3694cf22e32183d0ef9d7783bc:/gitweb.cgi
diff --git a/gitweb.cgi b/gitweb.cgi
index 1979ea1..fa2d045 100755
--- a/gitweb.cgi
+++ b/gitweb.cgi
@@ -14,7 +14,7 @@ use CGI::Carp qw(fatalsToBrowser);
my $cgi = new CGI;
-my $version = "080";
+my $version = "082";
my $projectroot = "/pub/scm";
my $home_link = "/git";
my $gitbin = "/usr/bin";
@@ -23,12 +23,6 @@ my $logo_link = "/pub/software/scm/cogito";
my $my_url = $cgi->url();
my $my_uri = $cgi->url(-absolute => 1);
-# remove #
-my $projectroot = "/home/kay/public_html/pub/scm";
-my $home_link = "/~kay/git";
-my $logo_link = "/~kay/pub/software/scm/cogito";
-# remove #
-
mkdir($gittmp, 0700);
my $project = $cgi->param('p');
my $action = $cgi->param('a');
@@ -185,7 +179,7 @@ sub git_commit {
my %co;
my @parents;
- open my $fd, "-|", "$gitbin/git-cat-file commit $commit";
+ open my $fd, "-|", "$gitbin/cat-file commit $commit";
while (my $line = <$fd>) {
chomp($line);
last if $line eq "";
@@ -257,7 +251,7 @@ sub git_diff_html {
if ($from ne "") {
$from_tmp = "$gittmp/gitweb_" . $$ . "_from";
open(my $fd2, "> $from_tmp");
- open my $fd, "-|", "$gitbin/git-cat-file blob $from";
+ open my $fd, "-|", "$gitbin/cat-file blob $from";
my @file = <$fd>;
print $fd2 @file;
close $fd2;
@@ -269,7 +263,7 @@ sub git_diff_html {
if ($to ne "") {
$to_tmp = "$gittmp/gitweb_" . $$ . "_to";
open my $fd2, "> $to_tmp";
- open my $fd, "-|", "$gitbin/git-cat-file blob $to";
+ open my $fd, "-|", "$gitbin/cat-file blob $to";
my @file = <$fd>;
print $fd2 @file;
close $fd2;
@@ -387,7 +381,7 @@ if ($action eq "blob") {
print "
\n";
print "
\n";
- open(my $fd, "-|", "$gitbin/git-cat-file blob $hash");
+ open(my $fd, "-|", "$gitbin/cat-file blob $hash");
my $nr;
while (my $line = <$fd>) {
$nr++;
@@ -401,7 +395,7 @@ if ($action eq "blob") {
if ($hash eq "") {
$hash = git_head($project);
}
- open my $fd, "-|", "$gitbin/git-ls-tree $hash";
+ open my $fd, "-|", "$gitbin/ls-tree $hash";
my (@entries) = map { chomp; $_ } <$fd>;
close $fd;
@@ -440,7 +434,7 @@ if ($action eq "blob") {
print "