porcelain.add() not adding files in root directory

12 views
Skip to first unread message

Dominique Vocat

unread,
Aug 27, 2018, 6:55:27 AM8/27/18
to dulwich-discuss
Maybe i am missing something but i tried to find why i am missing files when using porcelain.add() vs git add "
One thing i seem to notice is that files located in the root folder do not get added by porcelain.add() and when i do the same with git add they are added to tracked files.

To show what mean i created a directory with two subfolders and two files in the root. Initialized it and ran add - result is this:

Changes to be committed:
 
    add: folder1/file3
    add: folder2/file4
 
Untracked files:
 
    file1
    file2
    .gitignore
    folder2/file4
    folder1/file3

the output of git status

On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   folder1/file3
        new file:   folder2/file4

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

        .gitignore
        file1
        file2

Is there something totally obvious that i am missing?
Reply all
Reply to author
Forward
0 new messages