summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2014-03-16 21:21:26 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2014-03-16 21:21:26 -0700
commit5532bcd9c3852203b8d2280b92e0a254eaf7b694 (patch)
treeb34e91b01a695ee037046587c89fe19874ef18ef
parenta085af9d2f01ca380bd827d7e20a72b223c8935d (diff)
downloadpiny-code-5532bcd9c3852203b8d2280b92e0a254eaf7b694.tar.gz
piny-code-5532bcd9c3852203b8d2280b92e0a254eaf7b694.zip
Repo.pm: whoops, wrong object
-rw-r--r--libpiny/lib/Piny/Repo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 031558e..ba1ee09 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -492,7 +492,7 @@ sub create {
mkdir( $repo->path ) or die "The repo $name appears to already exist! ($!)";
- chdir( $s->config->piny_gitpath ); # so git-clone can do the work of resolving local repo names for us
+ chdir( $repo->config->piny_gitpath ); # so git-clone can do the work of resolving local repo names for us
if ( defined $remote ) {
system( "/bin/chown", $user->name, $repo->path ) and die "Could not change ownership of repo path!"; # permissions are overridden later
if ( system( "/usr/bin/sudo", "-H", "-u", $user->name, "/usr/bin/git", "clone", "--bare", "--no-hardlinks", "--quiet", $remote, $repo->path ) ) { # sudo -u $user needed in order to test user readability of whatever they want to clone. the mode o+rx should probably be masked off if we want private repos to stay private.