]> git.proxmox.com Git - libgit2.git/commit - src/checkout.c
Fix checkout of submodules with no .gitmodules
authorRussell Belfer <rb@github.com>
Wed, 15 May 2013 21:54:02 +0000 (14:54 -0700)
committerRussell Belfer <rb@github.com>
Wed, 15 May 2013 21:54:02 +0000 (14:54 -0700)
commitdcb0f7c061554de06db5879361b22eab3517a4ee
tree2221b740034cf3bf6236daa60242bb966d7c76cd
parent55d3a39098bfc513b12ad6cb56658cb2f87e6a91
Fix checkout of submodules with no .gitmodules

It is possible for there to be a submodule in a repository with
no .gitmodules file (for example, if the user forgot to commit
the .gitmodules file).  In this case, core Git will just create
an empty directory as a placeholder for the submodule but
otherwise ignore it.  We were generating an error and stopping
the checkout.  This makes our behavior match that of core git.
include/git2/index.h
src/checkout.c
src/index.c