<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sarwiki.informatik.hu-berlin.de/index.php?action=history&amp;feed=atom&amp;title=Git</id>
	<title>Git - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sarwiki.informatik.hu-berlin.de/index.php?action=history&amp;feed=atom&amp;title=Git"/>
	<link rel="alternate" type="text/html" href="https://sarwiki.informatik.hu-berlin.de/index.php?title=Git&amp;action=history"/>
	<updated>2026-05-10T19:36:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://sarwiki.informatik.hu-berlin.de/index.php?title=Git&amp;diff=10224&amp;oldid=prev</id>
		<title>U9786 at 12:03, 31 October 2012</title>
		<link rel="alternate" type="text/html" href="https://sarwiki.informatik.hu-berlin.de/index.php?title=Git&amp;diff=10224&amp;oldid=prev"/>
		<updated>2012-10-31T12:03:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Code für GitWeb ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  our $export_auth_hook = export_auth_hook;&lt;br /&gt;
  sub export_auth_hook {&lt;br /&gt;
    my $dir = $_;&lt;br /&gt;
    $numParameters = @_;&lt;br /&gt;
    if (!$dir) {&lt;br /&gt;
        $dir = @_[0];&lt;br /&gt;
        my $laenge = length $projectroot;&lt;br /&gt;
        $laenge +=1;&lt;br /&gt;
        $dir =  substr $dir, $laenge;&lt;br /&gt;
    }&lt;br /&gt;
    open my $ACCESSCONF, &amp;#039;&amp;lt;&amp;#039;, &amp;quot;/etc/gitweb.access.conf&amp;quot; or return;&lt;br /&gt;
    while (my $accessline = &amp;lt;$ACCESSCONF&amp;gt;) {&lt;br /&gt;
        chomp $accessline;&lt;br /&gt;
        my ($accesspath,$foo_groups) = split &amp;#039; &amp;#039;, $accessline;&lt;br /&gt;
        if($accesspath =~ m/\#/) { next; }&lt;br /&gt;
        if ($accesspath eq $dir) {&lt;br /&gt;
            my @userliste = split &amp;#039; &amp;#039;, $accessline;&lt;br /&gt;
            $foo_groups = unescape($foo_groups);&lt;br /&gt;
            my @foo_a_groups = split &amp;#039; &amp;#039;, $foo_groups;&lt;br /&gt;
            if(grep $_ eq $ENV {&amp;#039;REMOTE_USER&amp;#039;}, @userliste) {&lt;br /&gt;
                close $ACCESSCONF;&lt;br /&gt;
                return 1;&lt;br /&gt;
            }&lt;br /&gt;
            else { &lt;br /&gt;
            # kein treffer&lt;br /&gt;
    }   }   }&lt;br /&gt;
    close $ACCESSCONF;&lt;br /&gt;
    return 0; &lt;br /&gt;
  };&lt;/div&gt;</summary>
		<author><name>U9786</name></author>
	</entry>
</feed>