summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuangli <yuangli@mathworks.com>2022-08-02 16:46:44 +0100
committeryuangli <yuangli@mathworks.com>2022-08-02 16:46:44 +0100
commit8ef492fafcc05ccfa90481057eccc8ba4f5e730a (patch)
treedd605f105ecf4898a454abf67b73f11a26319cc7
parentda04d3fc5e737b990e884129241f2ea3cba4cf6a (diff)
downloadlibgit2-8ef492fafcc05ccfa90481057eccc8ba4f5e730a.tar.gz
fix build warning
-rw-r--r--src/libgit2/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/clone.c b/src/libgit2/clone.c
index 95bddeae6..5e07dc733 100644
--- a/src/libgit2/clone.c
+++ b/src/libgit2/clone.c
@@ -389,7 +389,7 @@ static int checkout_branch(git_repository *repo, git_remote *remote, const git_c
return error;
}
-static int git_fetch_is_shallow(git_fetch_options *opts)
+static int git_fetch_is_shallow(const git_fetch_options *opts)
{
return opts->depth > 0;
}