Permalink
Browse files

Fix mkcamp --skipvcs which wasn't creating camp base directory

  • Loading branch information...
1 parent f9711f3 commit 545df61bb0b36b12596ae53a8667707fee1ab510 @jonjensen jonjensen committed Sep 20, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 bin/mkcamp
View
@@ -102,8 +102,13 @@ print "Configuration hash:\n", Dumper($conf);
# Add to camp database
register_camp($opt{comment}) unless $opt{skipcamp};
-# Check out bulk of files from version control repository
-vcs_checkout($opt{replace}) unless $opt{skipvcs};
+# Make camp base directory and/or check out files from version control repository
+if ($opt{skipvcs}) {
+ create_camp_path($conf->{number}, $opt{replace});
+}
+else {
+ vcs_checkout($opt{replace});
+}
# Must prepare database before installing templates; do so now.
prepare_database($opt{replace}) unless $opt{skipdb};
@@ -158,7 +163,7 @@ mkcamp - create a new camp
=head1 VERSION
-3.02
+3.03
=head1 SYNOPSIS

0 comments on commit 545df61

Please sign in to comment.