projects
/
m6w6
/
replicator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
b02cb99
)
fix description
author
Michael Wallner
<mike@php.net>
Fri, 29 May 2015 18:16:54 +0000
(20:16 +0200)
committer
Michael Wallner
<mike@php.net>
Fri, 29 May 2015 18:18:03 +0000
(20:18 +0200)
public/mirror.php
patch
|
blob
|
history
diff --git
a/public/mirror.php
b/public/mirror.php
index 4040d879c7746bc6ffd81c7ee4d5a36f35a037e2..57970db17d73da21aedc18e732d98717713ec00d 100644
(file)
--- a/
public/mirror.php
+++ b/
public/mirror.php
@@
-58,9
+58,10
@@
switch ($evt) {
}
} elseif (mkdir($path, 0755, true) && chdir($path)) {
$source = escapeshellarg($json->repository->clone_url);
}
} elseif (mkdir($path, 0755, true) && chdir($path)) {
$source = escapeshellarg($json->repository->clone_url);
- $description = escapeshellarg($json->repository->descrption);
+ $description = escapeshellarg($json->repository->descr
i
ption);
passthru("git clone --mirror $source . 2>&1", $rv);
passthru("git config gitweb.description $description 2>&1");
passthru("git clone --mirror $source . 2>&1", $rv);
passthru("git config gitweb.description $description 2>&1");
+ unlink("description");
if ($rv == 0) {
$response->setResponseCode(200);
}
if ($rv == 0) {
$response->setResponseCode(200);
}