dulwich icon indicating copy to clipboard operation
dulwich copied to clipboard

porcelain.add() not add in all files...

Open dominiquevocat opened this issue 7 years ago • 3 comments

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 in my environment is that files do not get added by porcelain.add() and when i do the same with git add they are added to tracked files.

I used the dulwich.py command line example and version 0.19.7

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

dulwich.py status

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?

dominiquevocat avatar Aug 31 '18 14:08 dominiquevocat

On Fri, Aug 31, 2018 at 07:10:57AM -0700, dominiquevocat wrote:

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 in my environment is that files do not get added by porcelain.add() and when i do the same with git add they are added to tracked files.

I used the dulwich.py command line example and version 0.19.7

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

In what directory are you running "dulwich add" ? Are you specifying any absolute or relative paths to it? You may be hitting #575

-- Jelmer Vernooij [email protected] PGP Key: https://www.jelmer.uk/D729A457.asc

jelmer avatar Sep 01 '18 23:09 jelmer

need to look into it. before running porcelain.add i set the os.chdir(repolocation) so i always work with a repo '.'

dominiquevocat avatar Sep 03 '18 13:09 dominiquevocat

how does dulwich add new file ? @dominiquevocat

QGB avatar Jan 30 '20 16:01 QGB