You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my untracked files are not added to repo but some b'./' instead.
If I commit those changes, then git repository becomes corrupted and I can't run 'status' or standalone git commands inside it anymore.
It says 'Fatal: empty filename in tree'
Please help me how to add new files into repository, any working workaround will be much appreciated! It seems problem is with relpath in porcelain.py but I'm not sure how to fix it :(
for p in paths:
path = Path(p)
relpath = str(path.resolve().relative_to(repo_path))
# FIXME: Support patterns
Thank you!
The text was updated successfully, but these errors were encountered:
No, it doesn't work if I pass it only once or specify another valid folder. That is exactly what I'm trying to solve, it looks like current version of porcelain uses current working path (e.g. where caller script is located) instead of parameter I specify in porcelain.add()
I want to start script in one folder and pass another which I want to add into git repository.
E.g. script is located in /c/scipt_folder/script_using_porcelain_add.py and my repo is in /c/some_git_repo_i_want_to_add
If I call porcelain.add() with any combination of parameters (I really tried hard with all possible combinations before opening the ticket) it always adds /c/scipt_folder/
Please note that /c/scipt_folder/ is also versioned in git
Hello,
I have a repo inside c:/tmp/release-package-v0.0.1
When I run
It shows some strange status:
GitStatus(staged={'add': [b'./'], 'delete': [], 'modify': []}, unstaged=[], untracked=['LICENSE', 'README.md', 'synchronizer.py'])
So my untracked files are not added to repo but some b'./' instead.
If I commit those changes, then git repository becomes corrupted and I can't run 'status' or standalone git commands inside it anymore.
It says 'Fatal: empty filename in tree'
Please help me how to add new files into repository, any working workaround will be much appreciated! It seems problem is with relpath in porcelain.py but I'm not sure how to fix it :(
Thank you!
The text was updated successfully, but these errors were encountered: