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

Re: [Cogito] Various bugs

From
Petr Baudis <pasky@suse.cz>
Date
Feb 7, 2006, 00:36 UTC
Message-ID
<20060207003643.GJ31278@pasky.or.cz>
In-Reply-To
<20060131041318.GC30744@diku.dk>

Dear diary, on Tue, Jan 31, 2006 at 05:13:18AM CET, I got a letter where Jonas Fonseca <fonseca@diku.dk> said that...

Show 5 quoted lines
> A few Cogito bugs I found yesterday.
> 
>  - cg-fetch between local repos fails when the cloned branch URL does
>    not point to a .git directory and a needed object from the repository
>    being cloned is packed. git-local-fetch expects a .git directory.

Can't reproduce and I don't buy it. The very first line of local fetch handler is

	[ -d "$uri/.git" ] && uri="$uri/.git"
>  - cg-commit -c will do the wrong thing (use the invokers gecos info)
>    when the author name is empty. One workaround is to make
>    pick_author_script append a space at the end of the GIT_* variables.
>    GIT will strip those and no gecos info is used.

I'd rather fix this in GIT than workaround in Cogito. Will follow up with a patch.

... Hmm. ...

I'm puzzled. GIT should handle this fine.
	export GIT_AUTHOR_NAME=''
	git-commit-tree $(cg-object-id -t)

works as expected, but for some reason escaping me it does not work inside of cg-commit. Insights welcomed.

Show 11 quoted lines
>  - cg-status reports a deleted file both as deleted and as unknown:
> 
> 	fonseca@antimatter:~/src/elinks/0.12 > git --version
> 	git version 1.1.6.g1506
> 	fonseca@antimatter:~/src/elinks/0.12 > cg --version
> 	cogito-0.17pre.GIT (d3aa9a2b3375e36c774ea477492db76baa1db03e)
> 	fonseca@antimatter:~/src/elinks/0.12 > cg rm AUTHORS
> 	Removing file AUTHORS
> 	fonseca@antimatter:~/src/elinks/0.12 > cg status | grep AUTHORS
> 	? AUTHORS
> 	D AUTHORS

This is fine, I'd say. The file was not deleted from the tree, either do that manually by rm or say cg-rm -f.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
Previous: Jonas FonsecaNext: Junio C Hamano
Message 2 of 10 in “[Cogito] Various bugs”
  1. Jonas FonsecaJan 31, 2006
  2. Petr BaudisFeb 7, 2006
  3. Junio C HamanoFeb 7, 2006
  4. Petr BaudisFeb 7, 2006
  5. Junio C HamanoFeb 7, 2006
  6. Linus TorvaldsFeb 7, 2006
  7. Petr BaudisFeb 7, 2006
  8. Linus TorvaldsFeb 7, 2006
  9. Junio C HamanoFeb 7, 2006
  10. Jonas FonsecaFeb 7, 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.