summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index facc812..1880ee2 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -204,7 +204,7 @@ sub rebuild {
};
foreach( "info", "logs" ) {
- mkdir( $s->path . "/" . $_ ) and die "Could not mkdir $_ for repo: $!";
+ (-e $s->path . "/" . $_) or mkdir( $s->path . "/" . $_ ) and die "Could not mkdir $_ for repo: $!";
};
chown( 0, 0, $s->path, $s->path . '/config' ) and die "Could not change ownership of git dir!";