commit 7ecc73af19d2c370aa43beb6db4157289013aa0c from: Tracey Emery date: Thu Feb 13 23:49:31 2020 UTC ensure we close the final checked dir in gw_load_got_path and use better error message commit - cc18a9041607ade66988adf85046170c984a5793 commit + 7ecc73af19d2c370aa43beb6db4157289013aa0c blob - 0235b8da6816a386ab956049de1ace696a559d4c blob + 63acb736979cb3416240e8eb1949c9a2c236605c --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -1542,9 +1542,10 @@ gw_load_got_path(struct gw_trans *gw_trans, struct gw_ dt = opendir(dir_test); if (dt == NULL) { - error = got_error(GOT_ERR_NOT_GIT_REPO); + error = got_error_from_errno2("bad path", dir_test); goto errored; - } + } else + opened = 1; done: error = gw_get_repo_description(&gw_dir->description, gw_trans, gw_dir->path);