From: Petr Baudis <pasky@suse.cz>
To: Junio C Hamano <junkio@cox.net>
Cc: <git@vger.kernel.org>
Subject: [PATCH 4/7] Git.pm: Fix Git->repository("/somewhere/totally/elsewhere")
Date: Sun, 25 Jun 2006 03:54:28 +0200 [thread overview]
Message-ID: <20060625015428.29906.66270.stgit@machine.or.cz> (raw)
In-Reply-To: <20060625015421.29906.50002.stgit@machine.or.cz>
Signed-off-by: Petr Baudis <pasky@suse.cz>
---
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');
next prev parent reply other threads:[~2006-06-25 1:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 1:54 [PATCH 1/7] Git.pm: Introduce ident() and ident_person() methods Petr Baudis
2006-06-25 1:54 ` [PATCH 2/7] Git.pm: Try to support ActiveState output pipe Petr Baudis
2006-06-25 1:54 ` [PATCH 3/7] Git.pm: Swap hash_object() parameters Petr Baudis
2006-06-25 1:54 ` Petr Baudis [this message]
2006-06-25 1:54 ` [PATCH 5/7] Make it possible to set up libgit directly (instead of from the environment) Petr Baudis
2006-06-25 1:54 ` [PATCH 6/7] Git.pm: Introduce fast get_object() method Petr Baudis
2006-06-25 1:54 ` [PATCH 7/7] Convert git-annotate to use Git.pm Petr Baudis
2006-06-25 9:27 ` Ryan Anderson
2006-06-25 9:36 ` Petr Baudis
2006-06-25 1:57 ` [PATCH 1/7] Git.pm: Introduce ident() and ident_person() methods Petr Baudis
2006-06-25 5:25 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060625015428.29906.66270.stgit@machine.or.cz \
--to=pasky@suse.cz \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).