Skip to content

Commit c0eaf89

Browse files
committed
Default to the current directory for checkouts
1 parent c1872d4 commit c0eaf89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Git/PurePerl.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ sub init {
382382

383383
sub checkout {
384384
my ( $self, $directory, $tree ) = @_;
385+
$directory ||= $self->directory;
385386
$tree ||= $self->master->tree;
386387
confess("Missing tree") unless $tree;
387388
foreach my $directory_entry ( $tree->directory_entries ) {

0 commit comments

Comments
 (0)