git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] submodule: Fix 'submodule status' when called from a subdirectory
@ 2019-11-23  6:28 Manish Goregaokar via GitGitGadget
  2019-11-23  6:28 ` [PATCH 1/1] " Manish Goregaokar via GitGitGadget
  2019-11-24  8:01 ` [PATCH v2 0/1] " Manish Goregaokar via GitGitGadget
  0 siblings, 2 replies; 11+ messages in thread
From: Manish Goregaokar via GitGitGadget @ 2019-11-23  6:28 UTC (permalink / raw)
  To: git; +Cc: Manish Goregaokar, Junio C Hamano

Previously, when calling git submodule status while in a subdirectory, it
was incorrectly not detecting modified submodules and thus reporting that
all of the submodules were unchanged.

This was because the submodule helper was calling diff-index with the
submodule path assuming the path was relative to the current prefix
directory, however the submodule path used is actually relative to the root.

This fixes the bug by setting the prefix to NULL when runningdiff-index from
the helper, so that it correctly interprets the path as relative to the
repository root.

Signed-off-by: Manish Goregaokar manishsmail@gmail.com
[manishsmail@gmail.com]

Manish Goregaokar (1):
  submodule: Fix 'submodule status' when called from a subdirectory

 builtin/submodule--helper.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


base-commit: 5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-472%2FManishearth%2Fsubdir-status-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-472/Manishearth/subdir-status-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/472
-- 
gitgitgadget

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-11-25  6:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23  6:28 [PATCH 0/1] submodule: Fix 'submodule status' when called from a subdirectory Manish Goregaokar via GitGitGadget
2019-11-23  6:28 ` [PATCH 1/1] " Manish Goregaokar via GitGitGadget
2019-11-24  5:17   ` Junio C Hamano
2019-11-24  8:01 ` [PATCH v2 0/1] " Manish Goregaokar via GitGitGadget
2019-11-24  8:01   ` [PATCH v2 1/1] submodule: fix " Manish Goregaokar via GitGitGadget
2019-11-25  1:56     ` Junio C Hamano
2019-11-25  4:08       ` Manish Goregaokar
2019-11-25  4:15   ` [PATCH v3 0/1] submodule: Fix " Manish Goregaokar via GitGitGadget
2019-11-25  4:15     ` [PATCH v3 1/1] submodule: fix " Manish Goregaokar via GitGitGadget
2019-11-25  4:51       ` Junio C Hamano
2019-11-25  6:32         ` Manish Goregaokar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).