index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-11-22 14:03:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-22 14:03:34 +0100 |
commit | d7a134060e2bab184ae0346ee65cd84f3981ab70 (patch) | |
tree | 7a1a505246ec7f0e018197931df81db162bf2503 /lib | |
parent | 8414e9fde067bef257f1d788380aa61e838e87ca (diff) |
-rw-r--r-- | lib/helper.php | 10 |
diff --git a/lib/helper.php b/lib/helper.php index 8a25b9b..043fab9 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -91,7 +91,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $git_available = preg_match( "/ 200 OK$/", - get_headers("https://git.archlinux32.org/archlinux32/packages")[0] + get_headers("https://git.archlinux32.org/packages")[0] ); apcu_store('git_available', $git_available, 120); }; @@ -111,7 +111,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = switch ($type) { case "tree": return - "https://git.archlinux32.org/archlinux32/" . + "https://git.archlinux32.org/" . $repository . "/src/" . $commit . @@ -120,7 +120,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $line; case "log": return - "https://git.archlinux32.org/archlinux32/" . + "https://git.archlinux32.org/" . $repository . "/commits/" . $commit . @@ -141,7 +141,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = switch ($type) { case "tree": return - "https://git2.archlinux32.org/archlinux32/" . + "https://git2.archlinux32.org/" . $repository . "/tree/" . $path . @@ -149,7 +149,7 @@ function git_url($repository,$type,$commit,$path,$line = null,$commit_is_hash = $line; case "log": return - "https://git2.archlinux32.org/archlinux32/" . + "https://git2.archlinux32.org/" . $repository . "/log/" . $path . |