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/checkout.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/checkout.c')
-rw-r--r-- | src/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checkout.c b/src/checkout.c index dab83c65a..d95244a69 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -180,7 +180,7 @@ static bool checkout_is_workdir_modified( return true; } - if (git_submodule_status(&sm_status, sm) < 0 || + if (git_submodule_status(&sm_status, data->repo, wditem->path) < 0 || GIT_SUBMODULE_STATUS_IS_WD_DIRTY(sm_status)) rval = true; else if ((sm_oid = git_submodule_wd_id(sm)) == NULL) |