[Bps-public-commit] Config-GitLike branch, master, updated. 1.00-33-g913c9c6
Alex Vandiver
alexmv at booth.bestpractical.com
Fri Mar 19 03:57:47 EDT 2010
The branch, master has been updated
via 913c9c6fb7583aea9c510fb19e442b8a1cdbdf75 (commit)
from 3c37d1a8b1dfd4b75e542554b6ff68bada4dfce6 (commit)
Summary of changes:
lib/Config/GitLike.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 913c9c6fb7583aea9c510fb19e442b8a1cdbdf75
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Mar 19 03:57:51 2010 -0400
Allow calling ->load_file without having called ->load
diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 6249d8c..6a1e973 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -139,6 +139,7 @@ sub _read_config {
sub load_file {
my $self = shift;
my ($filename) = @_;
+ $self->data({}) unless $self->is_loaded;
my $c = $self->_read_config($filename);
$self->parse_content(
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list