git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into remotefork
[phorkie.git]
/
www
/
fork.php
diff --git
a/www/fork.php
b/www/fork.php
index cc2ed33c68de4d754162b4f0e4e81630d8cdcf3f..6c96a6acb3b85d2918bcf12c10a353c1ddc53b41 100644
(file)
--- a/
www/fork.php
+++ b/
www/fork.php
@@
-3,10
+3,8
@@
* Fork a repository
*/
namespace phorkie;
* Fork a repository
*/
namespace phorkie;
+$reqWritePermissions = true;
require_once 'www-header.php';
require_once 'www-header.php';
-if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
- require_once 'secure.php';
-}
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
throw new Exception_Input('Forking only possible via POST');
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
throw new Exception_Input('Forking only possible via POST');
@@
-33,4
+31,4
@@
foreach (\glob($new->gitDir . '/hooks/*') as $hookfile) {
//FIXME: where to put fork source link?
redirect($new->getLink('display'));
//FIXME: where to put fork source link?
redirect($new->getLink('display'));
-?>
\ No newline at end of file
+?>