From ce53fbe4d05a8252b389f508aceefadf39745441 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Jan 2008 20:48:37 +0100 Subject: [PATCH] Do not /objects in alternates --- cgi/Git/RepoCGI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi/Git/RepoCGI.pm b/cgi/Git/RepoCGI.pm index 2d8cb94..949bbbf 100644 --- a/cgi/Git/RepoCGI.pm +++ b/cgi/Git/RepoCGI.pm @@ -327,14 +327,14 @@ sub _alternates_setup { my $filename = $self->{path}.'/objects/info/alternates'; open X, '>'.$filename or die "alternates failed: $!"; - print X "$forkee_path/objects\n"; + print X "$forkee_path\n"; close X; chmod 0664, $filename or warn "cannot chmod $filename: $!"; $filename = $self->{path}.'/objects/info/http-alternates'; open X, '>'.$filename or die "http-alternates failed: $!"; my $upfork = $forkee_name; - do { print X "/r/$upfork.git/objects\n"; } while ($upfork =~ s#/?.+?$## and $upfork); + do { print X "/r/$upfork.git\n"; } while ($upfork =~ s#/?.+?$## and $upfork); close X; chmod 0664, $filename or warn "cannot chmod $filename: $!"; -- 2.11.4.GIT