* cogito: problems in read-only trees
@ 2005-08-03 7:42 Wolfgang Denk
2005-08-04 20:11 ` git: " Petr Baudis
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2005-08-03 7:42 UTC (permalink / raw)
To: git
Hello,
sometimes I have to work in trees for which I have only read
permissions; cogito has problems then - for example:
-> cg-diff
fatal: unable to create new cachefile
fatal: unable to create temp-file
It would be nice if there was at least a way to specify some TMPDIR
instead of the current directory in such a situation.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Include the success of others in your dreams for your own success.
^ permalink raw reply [flat|nested] 3+ messages in thread
* git: problems in read-only trees
2005-08-03 7:42 cogito: problems in read-only trees Wolfgang Denk
@ 2005-08-04 20:11 ` Petr Baudis
2005-08-04 20:38 ` Holger Eitzenberger
0 siblings, 1 reply; 3+ messages in thread
From: Petr Baudis @ 2005-08-04 20:11 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: git
Dear diary, on Wed, Aug 03, 2005 at 09:42:41AM CEST, I got a letter
where Wolfgang Denk <wd@denx.de> told me that...
> Hello,
>
> sometimes I have to work in trees for which I have only read
> permissions; cogito has problems then - for example:
>
> -> cg-diff
> fatal: unable to create new cachefile
> fatal: unable to create temp-file
>
> It would be nice if there was at least a way to specify some TMPDIR
> instead of the current directory in such a situation.
This is a bug in git-diff-* (producing the second error message; the first
error message means failed git-update-cache --refresh but that isn't
fatal). Any reason why prep_temp_blob() works in . instead of $TMPDIR?
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone. -- Alan Cox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git: problems in read-only trees
2005-08-04 20:11 ` git: " Petr Baudis
@ 2005-08-04 20:38 ` Holger Eitzenberger
0 siblings, 0 replies; 3+ messages in thread
From: Holger Eitzenberger @ 2005-08-04 20:38 UTC (permalink / raw)
To: Petr Baudis; +Cc: Wolfgang Denk, git
Petr Baudis wrote:
>>-> cg-diff
>>fatal: unable to create new cachefile
>>fatal: unable to create temp-file
>>
>>It would be nice if there was at least a way to specify some TMPDIR
>>instead of the current directory in such a situation.
> This is a bug in git-diff-* (producing the second error message; the first
> error message means failed git-update-cache --refresh but that isn't
> fatal). Any reason why prep_temp_blob() works in . instead of $TMPDIR?
I do not know about the first message (cachefile), but the 2nd one is
trivial to fix. I implemented a function called git_mkstemp() (path.c
and so in libgit) which places the tmpfiles in $TMPDIR and if it's not
set in /tmp. The is close to what other programs do.
There are other references to mkstemp() in git where one or two of them
may use git_mkstemp() instead, but not in sha1_file.c, since it
hardlinks it later on.
/holger
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-04 20:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 7:42 cogito: problems in read-only trees Wolfgang Denk
2005-08-04 20:11 ` git: " Petr Baudis
2005-08-04 20:38 ` Holger Eitzenberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).