projects
/
GITManagedWebpage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b1df5
)
added .htaccess to .gitmanaged directory
author
pk910
<philipp@zoelle1.de>
Sun, 13 Oct 2013 13:54:39 +0000
(15:54 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 13 Oct 2013 13:54:39 +0000
(15:54 +0200)
GITManagedWebpage.class.php
patch
|
blob
|
history
diff --git
a/GITManagedWebpage.class.php
b/GITManagedWebpage.class.php
index c8c7714e719eec80823363657b4263165c185ce7..3f6ba4aae7772b0ee2d943f53ea4eaa9d57daf94 100644
(file)
--- a/
GITManagedWebpage.class.php
+++ b/
GITManagedWebpage.class.php
@@
-164,6
+164,14
@@
class GITManagedWebpage {
$this->error(self::ERROR_CRITICAL, "error cloning git repository.");
return;
}
+
+ $fp = fopen($this->workdir.'.htaccess');
+ fwrite($fp, '
+Order deny,allow
+Deny from all
+');
+ fclose($fp);
+
$this->ready = true;
$default_branch = str_replace(array("\r", "\n"), array("", ""), $this->gitcmd("rev-parse", "--abbrev-ref", "HEAD"));