aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-01-18 18:09:54 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-01-18 18:09:54 -0500
commitcda6773cdb86333ab90913ef25394b1b9b601818 (patch)
tree4cb2a6249453ef4034eef16b9c3789f7c4d0a5d1
parentf81117be5164e48b909cb5dff4a7dc870eaa0c87 (diff)
downloadlite-xl-plugin-manager-1.0.14.tar.gz
lite-xl-plugin-manager-1.0.14.zip
Removing empty comments.v1.0.14
-rw-r--r--src/lpm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 3a0ab3e..eacfd08 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -453,11 +453,9 @@ static int lpm_fetch(lua_State* L) {
if (lua_type(L, 2) == LUA_TFUNCTION)
fetch_opts.callbacks.transfer_progress = lpm_git_transfer_progress_cb;
git_strarray array = { (char**)&refspec, 1 };
- //
int error = git_remote_connect(remote, GIT_DIRECTION_FETCH, &fetch_opts.callbacks, NULL, NULL) ||
- git_remote_download(remote, refspec ? &array : NULL, &fetch_opts) ||
- git_remote_update_tips(remote, &fetch_opts.callbacks, fetch_opts.update_fetchhead, fetch_opts.download_tags, NULL);
-
+ git_remote_download(remote, refspec ? &array : NULL, &fetch_opts) ||
+ git_remote_update_tips(remote, &fetch_opts.callbacks, fetch_opts.update_fetchhead, fetch_opts.download_tags, NULL);
if (!error) {
git_buf branch_name = {0};
if (!git_remote_default_branch(&branch_name, remote)) {