Skip to content

Don't crash if trying to branchlift non-existing path.

Florian Karuhtz requested to merge (removed):patch-branchlift-crash into master

reposurgeon would crash when calling branchlift with a PATHPREFIX that does not exist in the repository:

reposurgeon% branchlift master path/does/not/exist my-branch
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe0 pc=0x7f6248]

Merge request reports