projects
/
gitweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3171c56
)
fixed coding fail from last commit
author
Stricted
<Stricted@nexus-irc.de>
Fri, 5 Oct 2012 13:13:04 +0000
(15:13 +0200)
committer
Stricted
<Stricted@nexus-irc.de>
Fri, 5 Oct 2012 13:13:04 +0000
(15:13 +0200)
git_download.php
patch
|
blob
|
blame
|
history
diff --git
a/git_download.php
b/git_download.php
index 33fbd7828e7f7eaa0cbc054f37ddd7c2eece75ba..fc729861e51c52dc9ea603c7ffd26a3f28ee68b7 100644
(file)
--- a/
git_download.php
+++ b/
git_download.php
@@
-71,9
+71,9
@@
if(isset($_GET['p'])){
$d = shell_exec("rm -r /usr/share/gitweb/dl/".$name);
header("Content-Type: application/x-gzip");
header("Content-Disposition: attachment; filename=".$name."-".$hash.".tar.gz");
- readfile("/usr/share/gitweb/dl/".$id);
+
$file =
readfile("/usr/share/gitweb/dl/".$id);
unlink("/usr/share/gitweb/dl/".$id);
-
+ echo $file;
}else{
echo "unknown project";
}