aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorFrank Lichtenheld <flichtenheld@astaro.com>2009-05-07 15:41:28 +0200
committerJunio C Hamano <gitster@pobox.com>2009-05-09 08:25:55 -0700
commitfe53bbc9bebb853f97f0da3f63f7fca5774e3f95 (patch)
tree84940a99a2d800c82f76488b91594a6bdb6e774a /perl
parentda159c7759418bb14af655968dfa7a98bdcb8661 (diff)
downloadgit-fe53bbc9bebb853f97f0da3f63f7fca5774e3f95.tar.gz
git-fe53bbc9bebb853f97f0da3f63f7fca5774e3f95.tar.xz
Git.pm: Always set Repository to absolute path if autodetecting
So far we only set it to absolute paths in some cases which lead to problems like wc_chdir not working. Signed-off-by: Frank Lichtenheld <flichtenheld@astaro.com> Acked-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
-rw-r--r--perl/Git.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index 4313db75b..e8df55d2f 100644
--- a/perl/Git.pm
+++ b/perl/Git.pm
@@ -185,7 +185,7 @@ sub repository {
if ($dir) {
$dir =~ m#^/# or $dir = $opts{Directory} . '/' . $dir;
- $opts{Repository} = $dir;
+ $opts{Repository} = abs_path($dir);
# If --git-dir went ok, this shouldn't die either.
my $prefix = $search->command_oneline('rev-parse', '--show-prefix');