diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-11-11 22:18:39 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-11 22:18:40 +0100 |
commit | 7b66375e6fbec4a813ed6c000f5c18fe53c1f824 (patch) | |
tree | e804867208823a586fdb05bb6a743b6f993acd14 /sequencer.c | |
parent | Merge branch 'js/test-file-size' (diff) | |
parent | sequencer: tolerate abbreviated stopped-sha file (diff) | |
download | git-7b66375e6fbec4a813ed6c000f5c18fe53c1f824.tar.xz git-7b66375e6fbec4a813ed6c000f5c18fe53c1f824.zip |
Merge branch 'jc/sequencer-stopped-sha-simplify'
Recently the format of an internal state file "rebase -i" uses has
been tightened up for consistency, which would hurt those who start
"rebase -i" with old git and then continue with new git. Loosen
the reader side a bit (which we may want to tighten again in a year
or so).
* jc/sequencer-stopped-sha-simplify:
sequencer: tolerate abbreviated stopped-sha file
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c index 12443965c7..684ea9d5ce 100644 --- a/sequencer.c +++ b/sequencer.c @@ -2651,7 +2651,7 @@ static int read_populate_opts(struct replay_opts *opts) } if (read_oneliner(&buf, rebase_path_squash_onto(), 0)) { - if (get_oid_hex(buf.buf, &opts->squash_onto) < 0) { + if (get_oid_committish(buf.buf, &opts->squash_onto) < 0) { ret = error(_("unusable squash-onto")); goto done_rebase_i; } |