Skip to content

Commit f304591

Browse files
author
Eric Wong
committed
git-svn: use path accessor for Git::SVN objects
The accessors should improve maintainability and enforce consistent access to Git::SVN objects. Signed-off-by: Eric Wong <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]>
1 parent 9478b11 commit f304591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ sub get_svnprops {
13141314
$path = $cmd_dir_prefix . $path;
13151315
fatal("No such file or directory: $path") unless -e $path;
13161316
my $is_dir = -d $path ? 1 : 0;
1317-
$path = join_paths($gs->{path}, $path);
1317+
$path = join_paths($gs->path, $path);
13181318

13191319
# canonicalize the path (otherwise libsvn will abort or fail to
13201320
# find the file)

perl/Git/SVN/Ra.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ sub gs_fetch_loop_common {
416416
}
417417
$SVN::Error::handler = $err_handler;
418418

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

0 commit comments

Comments
 (0)