diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-07-24 23:15:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-24 14:38:02 -0700 |
commit | 9e7d8a9bfb329c7f099abc1390a294482b5adbae (patch) | |
tree | b490b405df11d787252cf5546ec50846e5c5b602 /t/t5100/patch0013 | |
parent | blame: move entry prepend to libgit (diff) | |
download | tgif-9e7d8a9bfb329c7f099abc1390a294482b5adbae.tar.xz |
blame: fix memory corruption scrambling revision name in error message
When attempting to blame a non-existing path, git should show an error
message like this:
$ git blame e83c51633 -- nonexisting-file
fatal: no such path nonexisting-file in e83c51633
Since the recent commit 835c49f7d (blame: rework methods that
determine 'final' commit, 2017-05-24) the revision name is either
missing or some scrambled characters are shown instead. The reason is
that the revision name must be duplicated, because it is invalidated
when the pending objects array is cleared in the meantime, but this
commit dropped the duplication.
Restore the duplication of the revision name in the affected functions
(find_single_final() and find_single_initial()).
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/patch0013')
0 files changed, 0 insertions, 0 deletions