]> git.proxmox.com Git - libgit2.git/commit - tests/submodule/lookup.c
Fix error when submodule path and name differ
authorRussell Belfer <rb@github.com>
Wed, 26 Mar 2014 23:06:21 +0000 (16:06 -0700)
committerRussell Belfer <rb@github.com>
Wed, 26 Mar 2014 23:06:21 +0000 (16:06 -0700)
commit380f864a10aeadd30bd88138906d4fab577221de
tree502536aa9a7480ed542f6d9d2f4bd6adc71bef82
parent22df47cbc52107db25368cf0a09d63cc8dddafdb
Fix error when submodule path and name differ

When a submodule was inserted with a different path and name, the
return value from khash greater than zero was allowed to propagate
back out to the caller when it should really be zeroed.  This led
to a possible crash when reloading submodules if that was the
first time that submodule data was loaded.
src/submodule.c
tests/submodule/lookup.c