diff options
author | yuangli <yuangli@mathworks.com> | 2022-08-02 16:46:44 +0100 |
---|---|---|
committer | yuangli <yuangli@mathworks.com> | 2022-08-02 16:46:44 +0100 |
commit | 8ef492fafcc05ccfa90481057eccc8ba4f5e730a (patch) | |
tree | dd605f105ecf4898a454abf67b73f11a26319cc7 | |
parent | da04d3fc5e737b990e884129241f2ea3cba4cf6a (diff) | |
download | libgit2-8ef492fafcc05ccfa90481057eccc8ba4f5e730a.tar.gz |
fix build warning
-rw-r--r-- | src/libgit2/clone.c | 2 |
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; } |