diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2013-09-24 23:25:23 -0700 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2013-09-24 23:25:23 -0700 |
commit | eb34959e107b0761053662a1498026f856f2ce44 (patch) | |
tree | dd2007a82eba3a25998dd752a015e0788efa307f /contrib | |
parent | 1939ce67ed0da6d1819e7c711daaffae2e0a2713 (diff) | |
parent | 8fc9f0227e8ea0461abfd3dc01cf1a51cca0f87f (diff) | |
download | git-eb34959e107b0761053662a1498026f856f2ce44.tar.gz |
Merge branch 'es/contacts-in-subdir'
* es/contacts-in-subdir:
contacts: fix to work in subdirectories
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/contacts/git-contacts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/contacts/git-contacts b/contrib/contacts/git-contacts index fb6429b64b..428cc1a9a1 100755 --- a/contrib/contacts/git-contacts +++ b/contrib/contacts/git-contacts @@ -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); |