Ignore:
Timestamp:
Sep 3, 2012, 2:44:55 AM (12 years ago)
Author:
geofft
Message:
git: Don't export autoinstalls over git:// by default

The "git-daemon-export-ok" flag file is used by both git-daemon and
git-http-backend. Since we run a git-daemon out of ~/Scripts/git by
default, using this flag file means that even if you change your
autoinstall's .htaccess to deny public read, the repository is still
publicly readable over git://.

Fortunately, git-http-backend takes an environment variable as an
alternative, which we can set in our wrapper script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/deploy/bin/git

    r1805 r2314  
    5858export GIT_PROJECT_ROOT="$gitbase"
    5959export PATH_TRANSLATED="\$GIT_PROJECT_ROOT\$PATH_INFO"
     60export GIT_HTTP_EXPORT_ALL=1
    6061exec git http-backend
    6162EOF
     
    6869chdir "$addrend.git";
    6970
    70 open ENABLE, ">git-daemon-export-ok";
    71 print ENABLE "";
    72 close ENABLE;
    73 
    7471system qw{htpasswd -c}, $htpasswd, $admin_username;
    7572
Note: See TracChangeset for help on using the changeset viewer.