Skip to content

Commit

Permalink
git-svn: use path accessor for Git::SVN objects
Browse files Browse the repository at this point in the history
The accessors should improve maintainability and enforce
consistent access to Git::SVN objects.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
Eric Wong committed Oct 5, 2012
1 parent 9478b11 commit f304591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ sub get_svnprops {
$path = $cmd_dir_prefix . $path;
fatal("No such file or directory: $path") unless -e $path;
my $is_dir = -d $path ? 1 : 0;
$path = join_paths($gs->{path}, $path);
$path = join_paths($gs->path, $path);

# canonicalize the path (otherwise libsvn will abort or fail to
# find the file)
Expand Down
2 changes: 1 addition & 1 deletion perl/Git/SVN/Ra.pm
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ sub gs_fetch_loop_common {
}
$SVN::Error::handler = $err_handler;

my %exists = map { $_->{path} => $_ } @$gsv;
my %exists = map { $_->path => $_ } @$gsv;
foreach my $r (sort {$a <=> $b} keys %revs) {
my ($paths, $logged) = @{$revs{$r}};

Expand Down

0 comments on commit f304591

Please sign in to comment.