@@ -120,7 +120,7 @@ static GIT_PATH_FUNC(rebase_path_author_script, "rebase-merge/author-script")
120
120
static GIT_PATH_FUNC (rebase_path_amend , "rebase-merge/amend" )
121
121
/*
122
122
* When we stop at a given patch via the "edit" command, this file contains
123
- * the abbreviated commit name of the corresponding patch.
123
+ * the commit object name of the corresponding patch.
124
124
*/
125
125
static GIT_PATH_FUNC (rebase_path_stopped_sha , "rebase-merge/stopped-sha" )
126
126
/*
@@ -3112,11 +3112,12 @@ static int make_patch(struct repository *r,
3112
3112
{
3113
3113
struct strbuf buf = STRBUF_INIT ;
3114
3114
struct rev_info log_tree_opt ;
3115
- const char * subject , * p ;
3115
+ const char * subject ;
3116
+ char hex [GIT_MAX_HEXSZ + 1 ];
3116
3117
int res = 0 ;
3117
3118
3118
- p = short_commit_name ( commit );
3119
- if (write_message (p , strlen (p ), rebase_path_stopped_sha (), 1 ) < 0 )
3119
+ oid_to_hex_r ( hex , & commit -> object . oid );
3120
+ if (write_message (hex , strlen (hex ), rebase_path_stopped_sha (), 1 ) < 0 )
3120
3121
return -1 ;
3121
3122
res |= write_rebase_head (& commit -> object .oid );
3122
3123
@@ -4528,7 +4529,7 @@ int sequencer_continue(struct repository *r, struct replay_opts *opts)
4528
4529
4529
4530
if (read_oneliner (& buf , rebase_path_stopped_sha (),
4530
4531
READ_ONELINER_SKIP_IF_EMPTY ) &&
4531
- !get_oid_committish (buf .buf , & oid ))
4532
+ !get_oid_hex (buf .buf , & oid ))
4532
4533
record_in_rewritten (& oid , peek_command (& todo_list , 0 ));
4533
4534
strbuf_release (& buf );
4534
4535
}
0 commit comments