allow a/b/c type repos to be created

This commit is contained in:
Sitaram Chamarty 2009-10-23 10:14:41 +05:30
parent d6dc1c0856
commit 96fa0da946
2 changed files with 2 additions and 7 deletions

View file

@ -75,12 +75,6 @@ normal way, since it's not empty anymore.
to hurt anything. This happens even in normal git, not just gitolite. to hurt anything. This happens even in normal git, not just gitolite.
[Update 2009-09-14; this has been fixed in git 1.6.4.3] [Update 2009-09-14; this has been fixed in git 1.6.4.3]
* if you specify a repo that is not at the top level `$REPO_BASE`, be sure
to manually create the intermediate directories first. For instance if
you specify a new repo called "a/b/c" to the config file and push, the
"compile" script will just `mkdir a/b/c.git`, assuming "a/b" has already
been created
* gitweb not able to read your repos? You can change the umask for newly * gitweb not able to read your repos? You can change the umask for newly
created repos to something more relaxed -- see the `~/.gitolite.rc` file created repos to something more relaxed -- see the `~/.gitolite.rc` file

View file

@ -291,7 +291,8 @@ for my $repo (keys %repos)
{ {
unless (-d "$repo.git") unless (-d "$repo.git")
{ {
mkdir("$repo.git") or die "$ATTN mkdir $repo.git failed: $!\n"; system("mkdir", "-p", "$repo.git") and die "$ATTN mkdir $repo.git failed: $!\n";
# erm, note that's "and die" not "or die" as is normal in perl
wrap_chdir("$repo.git"); wrap_chdir("$repo.git");
system("git --bare init"); system("git --bare init");
system("cp $GL_ADMINDIR/src/update-hook.pl hooks/update"); system("cp $GL_ADMINDIR/src/update-hook.pl hooks/update");