diff options
author | kst <nil@krj.st> | 2020-08-05 22:11:18 +0000 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-08-06 18:25:27 +0200 |
commit | 174a763058f9a90831ab5a2aeb1c9bfbecdabf48 (patch) | |
tree | 641e9989acb9afb379a1dc872593d745faaeff3f /stagit-index.c | |
parent | f05e6b0fcb3b874180970d06ebcde05fb5aea470 (diff) |
fix submodule lookup in bare repos
git_submodule_lookup does not work without a working tree [1], so the
current approach fails to recognize any submodules in bare repos.
Instead, notice that
$ git ls-tree HEAD
lists any submodules as commit objects regardless of a working tree.
This is the only instance commit object is used in a tree, so we will
use this to check for submodules.
[1]: https://github.com/libgit2/libgit2/pull/4305/files
Diffstat (limited to 'stagit-index.c')
0 files changed, 0 insertions, 0 deletions