Keep the describe dirty suffix string alive
This commit is contained in:
@@ -716,8 +716,10 @@ class Repository(_Repository):
|
|||||||
format_options.abbreviated_size = abbreviated_size
|
format_options.abbreviated_size = abbreviated_size
|
||||||
if always_use_long_format is not None:
|
if always_use_long_format is not None:
|
||||||
format_options.always_use_long_format = always_use_long_format
|
format_options.always_use_long_format = always_use_long_format
|
||||||
|
dirty_ptr = None
|
||||||
if dirty_suffix:
|
if dirty_suffix:
|
||||||
format_options.dirty_suffix = ffi.new('char[]', to_bytes(dirty_suffix))
|
dirty_ptr = ffi.new('char[]', to_bytes(dirty_suffix))
|
||||||
|
format_options.dirty_suffix = dirty_ptr
|
||||||
|
|
||||||
buf = ffi.new('git_buf *', (ffi.NULL, 0))
|
buf = ffi.new('git_buf *', (ffi.NULL, 0))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user