Re: [Cogito] Various bugs
From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:18
Dear diary, on Tue, Jan 31, 2006 at 05:13:18AM CET, I got a letter where Jonas Fonseca [off-list ref] said that...
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.
- 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