diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/push.c | 6 | ||||
-rw-r--r-- | src/push.h | 6 | ||||
-rw-r--r-- | src/remote.c | 7 |
3 files changed, 6 insertions, 13 deletions
diff --git a/src/push.c b/src/push.c index 8b3d38e70..c6a93ba2f 100644 --- a/src/push.c +++ b/src/push.c @@ -167,9 +167,7 @@ int git_push_add_refspec(git_push *push, const char *refspec) return 0; } -int git_push_update_tips( - git_push *push, - const char *reflog_message) +int git_push_update_tips(git_push *push) { git_buf remote_ref_name = GIT_BUF_INIT; size_t i, j; @@ -213,7 +211,7 @@ int git_push_update_tips( } else { error = git_reference_create(NULL, push->remote->repo, git_buf_cstr(&remote_ref_name), &push_spec->loid, 1, - reflog_message ? reflog_message : "update by push"); + "update by push"); } } diff --git a/src/push.h b/src/push.h index 16550a705..b19d40e03 100644 --- a/src/push.h +++ b/src/push.h @@ -109,14 +109,10 @@ int git_push_add_refspec(git_push *push, const char *refspec); * * @param push The push object * @param signature The identity to use when updating reflogs - * @param reflog_message The message to insert into the reflogs. If NULL, the - * default is "update by push". * * @return 0 or an error code */ -int git_push_update_tips( - git_push *push, - const char *reflog_message); +int git_push_update_tips(git_push *push); /** * Perform the push diff --git a/src/remote.c b/src/remote.c index 9d48638ca..bc6d8a2c4 100644 --- a/src/remote.c +++ b/src/remote.c @@ -1461,7 +1461,7 @@ int git_remote_update_tips( /* push has its own logic hidden away in the push object */ if (remote->push) { - return git_push_update_tips(remote->push, reflog_message); + return git_push_update_tips(remote->push); } if (git_refspec__parse(&tagspec, GIT_REFSPEC_TAGS, true) < 0) @@ -2370,8 +2370,7 @@ cleanup: return error; } -int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts, - const char *reflog_message) +int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts) { int error; @@ -2383,7 +2382,7 @@ int git_remote_push(git_remote *remote, const git_strarray *refspecs, const git_ if ((error = git_remote_upload(remote, refspecs, opts)) < 0) return error; - error = git_remote_update_tips(remote, reflog_message); + error = git_remote_update_tips(remote, NULL); git_remote_disconnect(remote); return error; |