@@ -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
/*
@@ -3111,11 +3111,12 @@ static int make_patch(struct repository *r,
3111
3111
{
3112
3112
struct strbuf buf = STRBUF_INIT ;
3113
3113
struct rev_info log_tree_opt ;
3114
- const char * subject , * p ;
3114
+ const char * subject ;
3115
+ char hex [GIT_MAX_HEXSZ + 1 ];
3115
3116
int res = 0 ;
3116
3117
3117
- p = short_commit_name ( commit );
3118
- if (write_message (p , strlen (p ), rebase_path_stopped_sha (), 1 ) < 0 )
3118
+ oid_to_hex_r ( hex , & commit -> object . oid );
3119
+ if (write_message (hex , strlen (hex ), rebase_path_stopped_sha (), 1 ) < 0 )
3119
3120
return -1 ;
3120
3121
res |= write_rebase_head (& commit -> object .oid );
3121
3122
@@ -4527,7 +4528,7 @@ int sequencer_continue(struct repository *r, struct replay_opts *opts)
4527
4528
4528
4529
if (read_oneliner (& buf , rebase_path_stopped_sha (),
4529
4530
READ_ONELINER_SKIP_IF_EMPTY ) &&
4530
- !get_oid_committish (buf .buf , & oid ))
4531
+ !get_oid_hex (buf .buf , & oid ))
4531
4532
record_in_rewritten (& oid , peek_command (& todo_list , 0 ));
4532
4533
strbuf_release (& buf );
4533
4534
}
0 commit comments