aboutsummaryrefslogtreecommitdiffstats
path: root/Perl/Local
diff options
context:
space:
mode:
authorBas Zoetekouw <bas>2008-10-05 17:56:08 +0000
committerBas Zoetekouw <bas>2008-10-05 17:56:08 +0000
commit4dfccc5f70f19f35938872363e2a1eece13a0aa8 (patch)
tree49ae7d0511dddbaaea3e5b5ae2b87ee9bcdda845 /Perl/Local
parent11b104331c5af6f8e14eb53a856d50ad589c2911 (diff)
Make git the deafult fallback if CVS is not detected
CVS version numbers Perl/Local/VCS.pm: 1.2 -> 1.3
Diffstat (limited to 'Perl/Local')
-rw-r--r--Perl/Local/VCS.pm13
1 files changed, 4 insertions, 9 deletions
diff --git a/Perl/Local/VCS.pm b/Perl/Local/VCS.pm
index e45c00ec06f..59cd609bef1 100644
--- a/Perl/Local/VCS.pm
+++ b/Perl/Local/VCS.pm
@@ -17,11 +17,11 @@ use warnings;
our @ISA = qw(Exporter);
# this is the import routine that is called when this is "used" by a program
-# We implement it ourselves here to export the symbols from the
+# We implement it ourselves here to export the symbols from the
# correct module to the main program
sub import
{
- # the first argument is "Local::VCS";
+ # the first argument is "Local::VCS";
# shift it away, we'll specify it manually below
shift @_;
@@ -31,17 +31,12 @@ sub import
require Local::VCS_CVS;
Local::VCS_CVS->export_to_level(1, 'Local::VCS_CVS', @_);
}
- # TODO: this probably won't suffice, as git only puts a .git directory
- # in the top directory
- elsif ( -d '.git' )
+ # fall back to git
+ else
{
require Local::VCS_git;
Local::VCS_git->export_to_level(1, 'Local::VCS_git', @_);
}
- else
- {
- croak "No VCS found --- only CVS and git are supported\n";
- }
}
42;

© 2014-2024 Faster IT GmbH | imprint | privacy policy