All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1cccf09)
I threw in an abs_path because a repository in "." would turn into
something like "/home/joey/."
I think this is a reasonably safe change.
* bootstrap: Improve stats display.
* Add --insecure option that can be used to ignore SSL cert errors
when bootstrapping. (Pavel Avgustinov)
* bootstrap: Improve stats display.
* Add --insecure option that can be used to ignore SSL cert errors
when bootstrapping. (Pavel Avgustinov)
+ * Fix handling of a repository in "."
-- Joey Hess <joeyh@debian.org> Wed, 25 Nov 2009 17:27:23 -0500
-- Joey Hess <joeyh@debian.org> Wed, 25 Nov 2009 17:27:23 -0500
+sub repodir {
+ my $repo=shift;
+ my $topdir=$repo->{topdir};
+ my $subdir=$repo->{subdir};
+ return abs_path(($subdir =~/^\//) ? $subdir : $topdir.$subdir);
+}
+
# figure out which repos to act on
sub selectrepos {
my @repos;
# figure out which repos to act on
sub selectrepos {
my @repos;
my $subdir=$repo->{subdir};
next if $subdir eq 'DEFAULT';
my $subdir=$repo->{subdir};
next if $subdir eq 'DEFAULT';
- my $dir=($subdir =~/^\//) ? $subdir : $topdir.$subdir;
+ my $dir=repodir($repo);
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;
my $subdir=$repo->{subdir};
next if $subdir eq 'DEFAULT';
my $subdir=$repo->{subdir};
next if $subdir eq 'DEFAULT';
- my $dir=($subdir =~/^\//) ? $subdir : $topdir.$subdir;
+ my $dir=repodir($repo);
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;