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
I'm trying out the new --file-info-callback flag since it's exactly what I need.
However, the contents of the files are always None.
Also, when passing the code exactly from the manual, I get an error saying:
File "/usr/local/bin/git-filter-repo", line 2933, in get_contents_by_identifier
self._cat_file_process.stdin.write(b'contents '+blobhash+b'\n')
TypeError: can't concat int to bytes
This is solved by converting blob_id to a bytestring before passing to value.get_contents_by_identifier, but I'm unsure if this is the reason why contents is always None.
I'm trying out the new
--file-info-callback
flag since it's exactly what I need.However, the contents of the files are always
None
.Also, when passing the code exactly from the manual, I get an error saying:
This is solved by converting
blob_id
to a bytestring before passing tovalue.get_contents_by_identifier
, but I'm unsure if this is the reason why contents is always None.Here's the command I'm running:
git-filter-repo \ --state-branch _filter_state \ --source src \ --target dst \ --file-info-callback "$(cat file-info-callback.py)" \ --replace-text replace-text.txt \ --force \ --debug \ --refs main
Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: