summaryrefslogtreecommitdiff
path: root/src/diff_file.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-04 17:09:21 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-22 17:02:55 +0200
commit64bbd47a32e6aaed539bafd109eef624f24fbae7 (patch)
tree041d8dedeb30610522d413e424abd2ea6c4d17c3 /src/diff_file.c
parent5a9fc6c83c2fd12ce312d1042ec2c1e6abad4033 (diff)
downloadlibgit2-64bbd47a32e6aaed539bafd109eef624f24fbae7.tar.gz
submodule: don't let status change an existing instance
As submodules are becomes more like values, we should not let a status check to update its properties. Instead of taking a submodule, have status take a repo and submodule name.
Diffstat (limited to 'src/diff_file.c')
-rw-r--r--src/diff_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_file.c b/src/diff_file.c
index cef4bc169..4d9ecc8d8 100644
--- a/src/diff_file.c
+++ b/src/diff_file.c
@@ -186,7 +186,7 @@ static int diff_file_content_commit_to_str(
return error;
}
- if ((error = git_submodule_status(&sm_status, sm)) < 0) {
+ if ((error = git_submodule_status(&sm_status, fc->repo, fc->file->path)) < 0) {
git_submodule_free(sm);
return error;
}