Skip to content

Reading from Blob data stream results in ValueError exception when run under ipython #1627

@uzytkownik

Description

@uzytkownik

Unfortunately I cannot share stacktrace as it contains confidential information. I run into strange error - when I run following code from under ipython, GitPython throws ValueError saying it cannot decode SHA and a line from beginning of file. It seems to work when run as script:

repo = git.Repo(...)
blob = git.Blob(repo, b'...')
print(str(blob.data_stream.read()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions