{"thread":{"id":"1405","subject":"cogito: problems in read-only trees","startedAt":"2005-08-03T07:42:41Z","lastAt":"2005-08-04T20:38:36Z","messageCount":3,"participants":["Wolfgang Denk","Petr Baudis","Holger Eitzenberger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"6747","messageId":"20050803074241.A2D1D3535F9@atlas.denx.de","threadId":"1405","inReplyTo":null,"subject":"cogito: problems in read-only trees","fromName":"Wolfgang Denk","fromEmail":"wd@denx.de","sentAt":"2005-08-03T07:42:41Z","receivedAt":"2005-08-03T07:42:41Z","isPatch":false,"sender":{"key":"wd@denx.de","avatar":null},"body":"Hello,\n\nsometimes I have to  work  in  trees  for  which  I  have  only  read\npermissions; cogito has problems then - for example:\n\n-> cg-diff \nfatal: unable to create new cachefile\nfatal: unable to create temp-file\n\nIt would be nice if there was at least a way to specify  some  TMPDIR\ninstead of the current directory in such a situation.\n\nBest regards,\n\nWolfgang Denk\n\n-- \nSoftware Engineering:  Embedded and Realtime Systems,  Embedded Linux\nPhone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de\nInclude the success of others in your dreams for your own success.\n"},{"id":"6804","messageId":"20050804201125.GB24479@pasky.ji.cz","threadId":"1405","inReplyTo":"20050803074241.A2D1D3535F9@atlas.denx.de","subject":"git: problems in read-only trees","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-08-04T20:11:25Z","receivedAt":"2005-08-04T20:11:25Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Wed, Aug 03, 2005 at 09:42:41AM CEST, I got a letter\nwhere Wolfgang Denk <wd@denx.de> told me that...\n> Hello,\n> \n> sometimes I have to  work  in  trees  for  which  I  have  only  read\n> permissions; cogito has problems then - for example:\n> \n> -> cg-diff \n> fatal: unable to create new cachefile\n> fatal: unable to create temp-file\n> \n> It would be nice if there was at least a way to specify  some  TMPDIR\n> instead of the current directory in such a situation.\n\nThis is a bug in git-diff-* (producing the second error message; the first\nerror message means failed git-update-cache --refresh but that isn't\nfatal). Any reason why prep_temp_blob() works in . instead of $TMPDIR?\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nIf you want the holes in your knowledge showing up try teaching\nsomeone.  -- Alan Cox\n"},{"id":"6809","messageId":"42F27CCC.5050103@my-eitzenberger.de","threadId":"1405","inReplyTo":"20050804201125.GB24479@pasky.ji.cz","subject":"Re: git: problems in read-only trees","fromName":"Holger Eitzenberger","fromEmail":"holger@my-eitzenberger.de","sentAt":"2005-08-04T20:38:36Z","receivedAt":"2005-08-04T20:38:36Z","isPatch":false,"sender":{"key":"holger@my-eitzenberger.de","avatar":null},"body":"Petr Baudis wrote:\n\n>>-> cg-diff \n>>fatal: unable to create new cachefile\n>>fatal: unable to create temp-file\n>>\n>>It would be nice if there was at least a way to specify  some  TMPDIR\n>>instead of the current directory in such a situation.\n\n> This is a bug in git-diff-* (producing the second error message; the first\n> error message means failed git-update-cache --refresh but that isn't\n> fatal). Any reason why prep_temp_blob() works in . instead of $TMPDIR?\n\nI do not know about the first message (cachefile), but the 2nd one is \ntrivial to fix.  I implemented a function called git_mkstemp() (path.c \nand so in libgit) which places the tmpfiles in $TMPDIR and if it's not \nset in /tmp.  The is close to what other programs do.\n\nThere are other references to mkstemp() in git where one or two of them \nmay use git_mkstemp() instead, but not in sha1_file.c, since it \nhardlinks  it later on.\n\n/holger\n"}]}