summaryrefslogtreecommitdiff
path: root/stagit-index.c
diff options
context:
space:
mode:
authorkst <nil@krj.st>2020-08-05 22:11:18 +0000
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-08-06 18:25:27 +0200
commit174a763058f9a90831ab5a2aeb1c9bfbecdabf48 (patch)
tree641e9989acb9afb379a1dc872593d745faaeff3f /stagit-index.c
parentf05e6b0fcb3b874180970d06ebcde05fb5aea470 (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