diff options
author | Ben Straub <bs@github.com> | 2012-11-20 19:57:46 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:28 -0800 |
commit | f45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch) | |
tree | dab9495e4954677f12475d8335cd2ea9e752f24e /src/submodule.c | |
parent | d9023dbe0cb5d47e30d86149701b7be9006f7683 (diff) | |
download | libgit2-f45d51ff8e04c6849413c13aedcf5abacc3c69bd.tar.gz |
API updates for index.h
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index bc38f1f24..b6e5c96f6 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -733,7 +733,7 @@ int git_submodule_reload(git_submodule *submodule) pos = git_index_find(index, submodule->path); if (pos >= 0) { - git_index_entry *entry = git_index_get_byindex(index, pos); + const git_index_entry *entry = git_index_get_byindex(index, pos); if (S_ISGITLINK(entry->mode)) { if ((error = submodule_load_from_index(repo, entry)) < 0) |