* [PATCH] git-svn: change dashed git-commit-tree to git commit-tree
@ 2008-10-31 4:10 Deskin Miller
2008-11-02 9:38 ` Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Deskin Miller @ 2008-10-31 4:10 UTC (permalink / raw)
To: git; +Cc: normalperson, gitster
Signed-off-by: Deskin Miller <deskinm@umich.edu>
---
Once again I'm using a copy of git-svn.perl directly, and this fails to exec.
I looked at it more closely and it fails because git binary calls setup_path,
which puts the libexec path into $PATH; of course, this doesn't happen when
git-svn is called directly.
git-svn.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 2e68c68..56238da 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2202,7 +2202,7 @@ sub do_git_commit {
}
die "Tree is not a valid sha1: $tree\n" if $tree !~ /^$::sha1$/o;
- my @exec = ('git-commit-tree', $tree);
+ my @exec = ('git', 'commit-tree', $tree);
foreach ($self->get_commit_parents($log_entry)) {
push @exec, '-p', $_;
}
--
1.6.0.3.515.g304f
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] git-svn: change dashed git-commit-tree to git commit-tree
2008-10-31 4:10 [PATCH] git-svn: change dashed git-commit-tree to git commit-tree Deskin Miller
@ 2008-11-02 9:38 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2008-11-02 9:38 UTC (permalink / raw)
To: Deskin Miller; +Cc: git, gitster
Deskin Miller <deskinm@umich.edu> wrote:
> Signed-off-by: Deskin Miller <deskinm@umich.edu>
> ---
> Once again I'm using a copy of git-svn.perl directly, and this fails to exec.
> I looked at it more closely and it fails because git binary calls setup_path,
> which puts the libexec path into $PATH; of course, this doesn't happen when
> git-svn is called directly.
Thanks Deskin, looks like Junio already picked it up; but if we had
git-notes I'd add my Signed-off-by there :)
Also, on the subject of using git-svn.perl directly from the source
tree, it may become less usable that way in the near future:
Most of us (myself included) at GitTogether seemed like the idea of
splitting git-svn.perl into multiple files for maintainability reasons.
I just haven't gotten around to doing it yet.
OTOH, Git.pm is already required (but likely also installed in your
normal load paths); so you may just have to remember to use perl -I
--
Eric Wong
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-02 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31 4:10 [PATCH] git-svn: change dashed git-commit-tree to git commit-tree Deskin Miller
2008-11-02 9:38 ` Eric Wong
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).