Signed-off-by: Petr Baudis <pasky@xxxxxxx> --- perl/Git.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/perl/Git.pm b/perl/Git.pm index eea6c07..1c3a2ec 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -178,7 +178,8 @@ sub repository { }; if ($dir) { - $opts{Repository} = abs_path($dir); + $dir =~ m#^/# or $dir = $opts{Directory} . '/' . $dir; + $opts{Repository} = $dir; # If --git-dir went ok, this shouldn't die either. my $prefix = $search->command_oneline('rev-parse', '--show-prefix'); - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html