use command line git for closing because it supports --depth and seems to be faster than libgit2