mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
gitweb: Remove creating directory for temporary files
Remove $git_temp variable which held location for temporary files needed by git_diff_print, and removed creating $git_temp directory. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
8cce8e3ddb
commit
903acca753
|
@ -31,9 +31,6 @@
|
|||
#our $projectroot = "/pub/scm";
|
||||
our $projectroot = "++GITWEB_PROJECTROOT++";
|
||||
|
||||
# location for temporary files needed for diffs
|
||||
our $git_temp = "/tmp/gitweb";
|
||||
|
||||
# target of the home link on top of all pages
|
||||
our $home_link = $my_uri || "/";
|
||||
|
||||
|
@ -144,9 +141,6 @@ sub feature_snapshot {
|
|||
our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";
|
||||
|
||||
$projects_list ||= $projectroot;
|
||||
if (! -d $git_temp) {
|
||||
mkdir($git_temp, 0700) || die_error(undef, "Couldn't mkdir $git_temp");
|
||||
}
|
||||
|
||||
# ======================================================================
|
||||
# input validation and dispatch
|
||||
|
|
Loading…
Reference in a new issue