]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - lib/App/Rgit/Repository.pm
Test it, and prevent an undefined warning with fake repos
[perl/modules/rgit.git] / lib / App / Rgit / Repository.pm
index f5c01b57fddcf62ea270b1639bced920284049a5..ec96328a57882cc5e8f076b2b4ee2444141df69e 100644 (file)
@@ -45,7 +45,7 @@ sub new {
  $dir = cwd       unless defined $dir;
  my ($repo, $bare, $name, $work);
  if ($args{fake}) {
-  $work = $dir;
+  $repo = $work = $dir;
  } else { 
   my @tries = ($dir);
   my @chunks = splitdir $dir;