]> sipb.mit.edu Git - ikiwiki.git/commitdiff
indentation
authorJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 20:03:00 +0000 (16:03 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 4 Oct 2010 20:03:00 +0000 (16:03 -0400)
IkiWiki/Plugin/git.pm

index b6ed6142839b7a4cfdefbbf4d3fb959a75afaf8b..a0f9b15a799af756170675a2bbd59e82af99be85 100644 (file)
@@ -724,25 +724,27 @@ sub rcs_getmtime ($) {
 
 {
 my $git_root;
 
 {
 my $git_root;
+
 sub git_find_root {
 sub git_find_root {
-    # The wiki may not be the only thing in the git repo.
-    # Determine if it is in a subdirectory by examining the srcdir,
-    # and its parents, looking for the .git directory.
-
-    return $git_root if defined $git_root;
-
-    my $subdir="";
-    my $dir=$config{srcdir};
-    while (! -d "$dir/.git") {
-        $subdir=IkiWiki::basename($dir)."/".$subdir;
-        $dir=IkiWiki::dirname($dir);
-        if (! length $dir) {
-            error("cannot determine root of git repo");
-        }
-    }
+       # The wiki may not be the only thing in the git repo.
+       # Determine if it is in a subdirectory by examining the srcdir,
+       # and its parents, looking for the .git directory.
+
+       return $git_root if defined $git_root;
+       
+       my $subdir="";
+       my $dir=$config{srcdir};
+       while (! -d "$dir/.git") {
+               $subdir=IkiWiki::basename($dir)."/".$subdir;
+               $dir=IkiWiki::dirname($dir);
+               if (! length $dir) {
+                       error("cannot determine root of git repo");
+               }
+       }
 
 
-    return $subdir;
+       return $subdir;
 }
 }
+
 }
 
 sub git_parse_changes {
 }
 
 sub git_parse_changes {