> From: tomgra...@gmail.com

> : executing: cd /var/www/html/confix; echo $PATH 2>&1;
> : output: /sbin:/usr/sbin:/bin:/usr/bin
> 
> : executing: cd /var/www/html/confix; git init 2>&1;
> : output: Initialized empty Git repository in /var/www/html/confix/.git/
> 
> : executing: cd /var/www/html/confix; git add * 2>&1;
> : output:
> : executing: cd /var/www/html/confix; git commit -m 'first version' 2>&1;
> : output: error: unable to create temporary file: No such file or directory
> Error building trees

OK, all the errors after this seem to be due to this failure.  I.e.,
since the repository is still empty, you can't clone it.  (Why not, I
wonder?)  Since the clone failed, there is no repository for the next
commit, etc.

In regard to "unable to create temporary file: No such file or
directory", the question is where is Git attempting to create a
temporary file?  Often the default is "/tmp", overridden by $TMPDIR.
But creating temporary files usually depends on the execution
environment.

One approach would be to find the local version of "trace", the
program that prints out all the kernel calls made by an executable.
On my system, it's called "strace".  ("man -k trace" will probably
allow you to find it.)  So you'd do something like:

> : executing: cd /var/www/html/confix; strace git commit -m 'first version' 
> 2>&1;

Then near the bottom of the output, you'll see file system calls that
attempt to create the file, and it will tell the name of the file that
it's trying to create.

Also, it's kind of a crock that Git has a file-related operation that
fails, but Git's error message doesn't tell the name of the file it
was trying to operate on.  They should code better than that.

And be prepared for a lot of output...

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to