summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 15:06:40 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-01 15:06:40 +0900
commit95dd4b2b14db912b482320c0a69518e77e7af19a (patch)
tree2669be208ec8d5660fa69ebda9006e16a0abd3d7 /sequencer.c
parentMerge branch 'rd/tag-doc-lightweight' (diff)
parentsequencer: ensure labels that are object IDs are rewritten (diff)
downloadtgif-95dd4b2b14db912b482320c0a69518e77e7af19a.tar.xz
Merge branch 'js/rebase-recreate-merge'
Hotfixes. * js/rebase-recreate-merge: sequencer: ensure labels that are object IDs are rewritten git-rebase--interactive: fix copy-paste mistake
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index 560fc9b67d..cca968043e 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -3792,7 +3792,7 @@ static const char *label_oid(struct object_id *oid, const char *label,
p[i] = save;
}
}
- } else if (((len = strlen(label)) == GIT_SHA1_RAWSZ &&
+ } else if (((len = strlen(label)) == the_hash_algo->hexsz &&
!get_oid_hex(label, &dummy)) ||
(len == 1 && *label == '#') ||
hashmap_get_from_hash(&state->labels,