Read config from snapshot on textconv command retrieval

This commit is contained in:
Alberto Fanjul 2024-04-27 14:04:00 +02:00
parent df7d55f1d4
commit d7ff282be7

View file

@ -42,10 +42,12 @@ public class TextConv
var textconv_key = "diff.%s.textconv".printf(diffattr); var textconv_key = "diff.%s.textconv".printf(diffattr);
try try
{ {
command = repository.get_config().get_string(textconv_key); var config = repository.get_config().snapshot();
command = config.get_string(textconv_key);
} }
catch (GLib.Error e) catch (GLib.Error e)
{ {
warning("error getting textconv command: %s\n", e.message);
} }
} }
return command; return command;