Skip to content

Commit

Permalink
Merge branch 'es/contacts-in-subdir'
Browse files Browse the repository at this point in the history
* es/contacts-in-subdir:
  contacts: fix to work in subdirectories
  • Loading branch information
Jonathan Nieder committed Sep 25, 2013
2 parents 1939ce6 + 8fc9f02 commit eb34959
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/contacts/git-contacts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ if (@rev_args) {
scan_rev_args(\%sources, \@rev_args)
}

my $toplevel = `git rev-parse --show-toplevel`;
chomp $toplevel;
chdir($toplevel) or die "chdir failure: $toplevel: $!\n";

my %commits;
blame_sources(\%sources, \%commits);
import_commits(\%commits);
Expand Down

0 comments on commit eb34959

Please sign in to comment.