{"thread":{"id":"4055","subject":"cg-commit path handling problem","startedAt":"2006-05-04T15:12:35Z","lastAt":"2006-05-04T15:12:35Z","messageCount":1,"participants":["Christian Jaeger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"19517","messageId":"p04320440c07fca04afea@[192.168.40.11]","threadId":"4055","inReplyTo":null,"subject":"cg-commit path handling problem","fromName":"Christian Jaeger","fromEmail":"christian@jaeger.mine.nu","sentAt":"2006-05-04T15:12:35Z","receivedAt":"2006-05-04T15:12:35Z","isPatch":false,"sender":{"key":"christian@jaeger.mine.nu","avatar":null},"body":"Hello\n\nI did create a repository from a directory containing, amongst other \nstuff, files starting with a $ sign. E.g.\n\n$ find\n./foo\n./bar\n./var/cache\n./var/cache/$foo\n./var/cache/$foo::bar\n./var/cache/$baz\n\n$ cg-init\n...\n\nNow I realized that I didn't want the var directory in the repository and did\n\n$ cg-rm -r var\n$ cg-commit var\n\nwhich worked without warning, but:\n\n$ cg-status\n..\nD var/cache/$foo\nD var/cache/$foo::bar\nD var/cache/$baz\n\nSo I try again:\n\n$ cg-commit var\n\nwill open the editor with the $.. files in the CG: part, I enter a \ncommit message, exit the editor, it sayys \"Refusing to make an empty \ncommit\".\n\n$ cg-commit -f var\n\nsays \"committed as ....\", but cg-status will still show the same files as D\n\nAs per suggestion from #git, I did the equivalent of\n\nfind var -name '$*' |xargs git commit -m please_go_away --\n\nwhich worked.\n\nSo I guess that the cg-commit shell script isn't protecting file \npaths against variable substitution somewhere.\n\nThis is cogito-0.17.2 and git 1.2.6 (from Debian unstable rebuilt on Sarge).\n\nThanks for caring,\nChristian.\n"}]}