git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 01/12] Introduce Git.pm (v4)

From
Junio C Hamano <junkio@cox.net>
Date
Jun 24, 2006, 08:33 UTC
Message-ID
<7vu06bymtr.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vr71f5kzs.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 9 quoted lines
> Just to let you know, I already have v3 in my tree which is
> merged in "pu".  With the two fixes I sent you earlier I think
> it is in a good shape to be cooked in "next".
>
> I do not think I'd have trouble applying this new series (I
> would probably start from "master" to apply it and perhaps merge
> or --squash merge it onto pb/gitpm topic branch that has v3 with
> the two fixes I sent you separately) but we will see soon
> enough.
EEEEEEEEEK.

git-fmt-merge-msg failed and git-pull did not notice it and went ahead to call git-merge with an empty log message. This screwed up my tree rather big way.

The reason it failed? Well, it could not find Git.pm because the changes to fmt-merge-msg was done for distros not for people who install under their home directories.

Now, I am quite unhappy about the situation (and it is not your fault). "git pull" is something almost everybody uses, and having the series means they would need to make sure whereever Git.pm is installed is on their PERL5LIB as things currently stand.

In the case of git-merge-recursive.py, Fredrik does
	sys.path.append('''@@GIT_PYTHON_PATH@@''')

and while running test this invalid path is overridden by having PYTHONPATH environment variable. Since it is "append", the test picks up the freshly built version, not the version from the previous install (i.e. PYTHONPATH environment variable wins).

So you would probably want to have something like
	use lib '@@GIT_PERL_PATH@@';
inside git-fmt-merge-msg.perl, which will be turned into
	use lib '/home/junio/some/where/you/install/pm';
in git-fmt-merge-msg and things might start working.

... gitster mumbles something in his mouth, and in a puff of smoke Merlyn appears and solves all our Perl problems ;-) ...

Previous: Petr BaudisNext: Petr Baudis
Message 20 of 25 in “Introduce Git.pm (v4)”
  1. 01/12 Introduce Git.pm (v4)Petr Baudis, Jun 24, 2006
  2. 02/12 Git.pm: Implement Git::exec_path()Petr Baudis, Jun 24, 2006
  3. 03/12 Git.pm: Call external commands using execv_git_cmd()Petr Baudis, Jun 24, 2006
  4. 04/12 Git.pm: Implement Git::version()Petr Baudis, Jun 24, 2006
  5. 05/12 Customizable error handlersPetr Baudis, Jun 24, 2006
  6. 06/12 Add Error.pm to the distributionPetr Baudis, Jun 24, 2006
  7. 07/12 Git.pm: Better error handlingPetr Baudis, Jun 24, 2006
  8. Junio C HamanoJun 24, 2006
  9. Petr BaudisJun 24, 2006
  10. Petr BaudisJun 25, 2006
  11. Junio C HamanoJun 25, 2006
  12. 08/12 Git.pm: Handle failed commands' outputPetr Baudis, Jun 24, 2006
  13. 09/12 Git.pm: Enhance the command_pipe() mechanismPetr Baudis, Jun 24, 2006
  14. 10/12 Git.pm: Implement options for the command interfacePetr Baudis, Jun 24, 2006
  15. 11/12 Git.pm: Add support for subdirectories inside of working copiesPetr Baudis, Jun 24, 2006
  16. 12/12 Convert git-mv to use Git.pmPetr Baudis, Jun 24, 2006
  17. Petr BaudisJun 24, 2006
  18. Junio C HamanoJun 24, 2006
  19. Petr BaudisJun 24, 2006
  20. Junio C HamanoJun 24, 2006
  21. Petr BaudisJun 24, 2006
  22. Petr BaudisJun 24, 2006
  23. Junio C HamanoJun 24, 2006
  24. Petr BaudisJun 24, 2006
  25. Junio C HamanoJun 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.