2

I'm currently using pfsense as a firewall. I am wanting to extend the GUI to offer more features that I need. When I try to initialize the www directory with git I get the following error:

failed to stat '.': No such file or directory

I can initialize other directories, for example /usr/local/ will initialize fine but when I run git status in /usr/local/ I get the following out:

On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        bin/
        etc/
        include/
        info/
        lib/
        libdata/
        libexec/
        sbin/
        share/

This should also show the www directory.

pfsense utilises lighthttpd & freeBSD - if this is any help.

Thanks in advance.

jakehallas
  • 2,456
  • 1
  • 18
  • 26

1 Answers1

0

You simply create the directory and initialize it from inside, e.g.:

g@crayon2:~/test % mkdir www
g@crayon2:~/test % cd www
g@crayon2:~/test/www % git init
Initialized empty Git repository in /usr/home/g/test/www/.git/
g@crayon2:~/test/www % 
Greg
  • 8,230
  • 5
  • 38
  • 53
  • Thanks for the reply. The directory already exists & has files present inside but still throws the error as shown in my answer. – jakehallas Mar 04 '16 at 20:25
  • Well, in that case it has something to do with a specific file that is present in the `www` folder. Can you do `ls -la` in that folder and the whole output of the `git initalize` command and the error? – Greg Mar 04 '16 at 20:57