diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-04 17:09:21 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-22 17:02:55 +0200 |
commit | 64bbd47a32e6aaed539bafd109eef624f24fbae7 (patch) | |
tree | 041d8dedeb30610522d413e424abd2ea6c4d17c3 /src/diff_file.c | |
parent | 5a9fc6c83c2fd12ce312d1042ec2c1e6abad4033 (diff) | |
download | libgit2-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.c | 2 |
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; } |